(function(a,d){function g(c){return e.isWindow(c)?c:c.nodeType===9?c.defaultView||c.parentWindow:!1}function b(c){if(!Aa[c]){var o=n.body,a=e("<"+c+">").appendTo(o),b=a.css("display");a.remove();if(b==="none"||b===""){ca||(ca=n.createElement("iframe"),ca.frameBorder=ca.width=ca.height=0);o.appendChild(ca);if(!ja||!ca.createElement)ja=(ca.contentWindow||ca.contentDocument).document,ja.write((n.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),ja.close();a=ja.createElement(c);ja.body.appendChild(a);
b=e.css(a,"display");o.removeChild(ca)}Aa[c]=b}return Aa[c]}function h(c,o){var a={};e.each(Fa.concat.apply([],Fa.slice(0,o)),function(){a[this]=c});return a}function f(){va=d}function i(){setTimeout(f,0);return va=e.now()}function j(){try{return new a.XMLHttpRequest}catch(c){}}function m(c,o,a,b){if(e.isArray(o))e.each(o,function(o,d){a||Wa.test(c)?b(c,d):m(c+"["+(typeof d=="object"||e.isArray(d)?o:"")+"]",d,a,b)});else if(!a&&o!=null&&typeof o=="object")for(var d in o)m(c+"["+d+"]",o[d],a,b);else b(c,
o)}function t(c,e,a,b,S,h){S=S||e.dataTypes[0];h=h||{};h[S]=!0;for(var S=c[S],f=0,g=S?S.length:0,i=c===Ba,j;f<g&&(i||!j);f++)j=S[f](e,a,b),typeof j=="string"&&(!i||h[j]?j=d:(e.dataTypes.unshift(j),j=t(c,e,a,b,j,h)));(i||!j)&&!h["*"]&&(j=t(c,e,a,b,"*",h));return j}function r(c){return function(o,a){typeof o!="string"&&(a=o,o="*");if(e.isFunction(a))for(var b=o.toLowerCase().split(Ga),d=0,h=b.length,f,g,i;d<h;d++)f=b[d],i=/^\+/.test(f),i&&(f=f.substr(1)||"*"),g=c[f]=c[f]||[],g[i?"unshift":"push"](a)}}
function v(c,o,a){var b=o==="width"?c.offsetWidth:c.offsetHeight,d=o==="width"?Xa:Ya;if(b>0)return a!=="border"&&e.each(d,function(){a||(b-=parseFloat(e.css(c,"padding"+this))||0);a==="margin"?b+=parseFloat(e.css(c,a+this))||0:b-=parseFloat(e.css(c,"border"+this+"Width"))||0}),b+"px";b=ka(c,o,o);if(b<0||b==null)b=c.style[o]||0;b=parseFloat(b)||0;a&&e.each(d,function(){b+=parseFloat(e.css(c,"padding"+this))||0;a!=="padding"&&(b+=parseFloat(e.css(c,"border"+this+"Width"))||0);a==="margin"&&(b+=parseFloat(e.css(c,
a+this))||0)});return b+"px"}function u(c,o){o.src?e.ajax({url:o.src,async:!1,dataType:"script"}):e.globalEval((o.text||o.textContent||o.innerHTML||"").replace(Za,"/*$0*/"));o.parentNode&&o.parentNode.removeChild(o)}function p(c){e.nodeName(c,"input")?A(c):"getElementsByTagName"in c&&e.grep(c.getElementsByTagName("input"),A)}function A(c){if(c.type==="checkbox"||c.type==="radio")c.defaultChecked=c.checked}function D(c){return"getElementsByTagName"in c?c.getElementsByTagName("*"):"querySelectorAll"in
c?c.querySelectorAll("*"):[]}function C(c,o){var a;if(o.nodeType===1){o.clearAttributes&&o.clearAttributes();o.mergeAttributes&&o.mergeAttributes(c);a=o.nodeName.toLowerCase();if(a==="object")o.outerHTML=c.outerHTML;else if(a!=="input"||c.type!=="checkbox"&&c.type!=="radio")if(a==="option")o.selected=c.defaultSelected;else{if(a==="input"||a==="textarea")o.defaultValue=c.defaultValue}else c.checked&&(o.defaultChecked=o.checked=c.checked),o.value!==c.value&&(o.value=c.value);o.removeAttribute(e.expando)}}
function M(c,o){if(o.nodeType===1&&e.hasData(c)){var a=e.expando,b=e.data(c),d=e.data(o,b);if(b=b[a]){var f=b.events,d=d[a]=e.extend({},b);if(f){delete d.handle;d.events={};for(var h in f){a=0;for(b=f[h].length;a<b;a++)e.event.add(o,h+(f[h][a].namespace?".":"")+f[h][a].namespace,f[h][a],f[h][a].data)}}}}}function Z(c,o,a){o=o||0;if(e.isFunction(o))return e.grep(c,function(c,e){return!!o.call(c,e,c)===a});if(o.nodeType)return e.grep(c,function(c){return c===o===a});if(typeof o=="string"){var b=e.grep(c,
function(c){return c.nodeType===1});if($a.test(o))return e.filter(o,b,!a);o=e.filter(o,b)}return e.grep(c,function(c){return e.inArray(c,o)>=0===a})}function H(c,e){return(c&&c!=="*"?c+".":"")+e.replace(s,"`").replace(L,"&")}function N(c){var o,a,b,d,f,h,g,i,j,q,l,k=[];d=[];g=e._data(this,"events");if(!(c.liveFired===this||!g||!g.live||c.target.disabled||c.button&&c.type==="click")){c.namespace&&(l=RegExp("(^|\\.)"+c.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)"));c.liveFired=this;var w=g.live.slice(0);
for(g=0;g<w.length;g++)f=w[g],f.origType.replace(P,"")===c.type?d.push(f.selector):w.splice(g--,1);d=e(c.target).closest(d,c.currentTarget);for(i=0,j=d.length;i<j;i++){q=d[i];for(g=0;g<w.length;g++)if(f=w[g],q.selector===f.selector&&(!l||l.test(f.namespace))&&!q.elem.disabled){h=q.elem;b=null;if(f.preType==="mouseenter"||f.preType==="mouseleave")c.type=f.preType,b=e(c.relatedTarget).closest(f.selector)[0],b&&e.contains(h,b)&&(b=h);(!b||b!==h)&&k.push({elem:h,handleObj:f,level:q.level})}}for(i=0,j=
k.length;i<j;i++){d=k[i];if(a&&d.level>a)break;c.currentTarget=d.elem;c.data=d.handleObj.data;c.handleObj=d.handleObj;f=d.handleObj.origHandler.apply(d.elem,arguments);if(f===!1||c.isPropagationStopped())if(a=d.level,f===!1&&(o=!1),c.isImmediatePropagationStopped())break}return o}}function V(c,a,b){var G=e.extend({},b[0]);G.type=c;G.originalEvent={};G.liveFired=d;e.event.handle.call(a,G);G.isDefaultPrevented()&&b[0].preventDefault()}function W(){return!0}function ea(){return!1}function ba(c,a,b){var G=
a+"defer",f=a+"queue",h=a+"mark",g=e.data(c,G,d,!0);g&&(b==="queue"||!e.data(c,f,d,!0))&&(b==="mark"||!e.data(c,h,d,!0))&&setTimeout(function(){!e.data(c,f,d,!0)&&!e.data(c,h,d,!0)&&(e.removeData(c,G,!0),g.resolve())},0)}function qa(c){for(var e in c)if(e!=="toJSON")return!1;return!0}function fa(c,a,b){if(b===d&&c.nodeType===1)if(b="data-"+a.replace(ra,"$1-$2").toLowerCase(),b=c.getAttribute(b),typeof b=="string"){try{b=b==="true"?!0:b==="false"?!1:b==="null"?null:e.isNaN(b)?R.test(b)?e.parseJSON(b):
b:parseFloat(b)}catch(G){}e.data(c,a,b)}else b=d;return b}var n=a.document,la=a.navigator,l=a.location,e=function(){function c(){if(!e.isReady){try{n.documentElement.doScroll("left")}catch(a){setTimeout(c,1);return}e.ready()}}var e=function(c,a){return new e.fn.init(c,a,f)},b=a.jQuery,G=a.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,g=/\S/,i=/^\s+/,j=/\s+$/,q=/\d/,l=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,k=/^[\],:{}\s]*$/,w=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
m=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,Q=/(opera)(?:.*version)?[ \/]([\w.]+)/,r=/(msie) ([\w.]+)/,y=/(mozilla)(?:.*? rv:([\w.]+))?/,sa=/-([a-z])/ig,ab=function(c,e){return e.toUpperCase()},bb=la.userAgent,wa,xa,ma,P=Object.prototype.toString,X=Object.prototype.hasOwnProperty,I=Array.prototype.push,x=Array.prototype.slice,J=String.prototype.trim,u=Array.prototype.indexOf,Y={};e.fn=e.prototype={constructor:e,init:function(c,a,b){var B,f,G;if(!c)return this;if(c.nodeType)return this.context=
this[0]=c,this.length=1,this;if(c==="body"&&!a&&n.body)return this.context=n,this[0]=n.body,this.selector=c,this.length=1,this;if(typeof c=="string"){c.charAt(0)!=="<"||c.charAt(c.length-1)!==">"||c.length<3?B=h.exec(c):B=[null,c,null];if(B&&(B[1]||!a)){if(B[1])return a=a instanceof e?a[0]:a,G=a?a.ownerDocument||a:n,f=l.exec(c),f?e.isPlainObject(a)?(c=[n.createElement(f[1])],e.fn.attr.call(c,a,!0)):c=[G.createElement(f[1])]:(f=e.buildFragment([B[1]],[G]),c=(f.cacheable?e.clone(f.fragment):f.fragment).childNodes),
e.merge(this,c);if((a=n.getElementById(B[2]))&&a.parentNode){if(a.id!==B[2])return b.find(c);this.length=1;this[0]=a}this.context=n;this.selector=c;return this}return!a||a.jquery?(a||b).find(c):this.constructor(a).find(c)}if(e.isFunction(c))return b.ready(c);c.selector!==d&&(this.selector=c.selector,this.context=c.context);return e.makeArray(c,this)},selector:"",jquery:"1.6.2",length:0,size:function(){return this.length},toArray:function(){return x.call(this,0)},get:function(c){return c==null?this.toArray():
c<0?this[this.length+c]:this[c]},pushStack:function(c,a,b){var d=this.constructor();e.isArray(c)?I.apply(d,c):e.merge(d,c);d.prevObject=this;d.context=this.context;a==="find"?d.selector=this.selector+(this.selector?" ":"")+b:a&&(d.selector=this.selector+"."+a+"("+b+")");return d},each:function(c,a){return e.each(this,c,a)},ready:function(c){e.bindReady();xa.done(c);return this},eq:function(c){return c===-1?this.slice(c):this.slice(c,+c+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},
slice:function(){return this.pushStack(x.apply(this,arguments),"slice",x.call(arguments).join(","))},map:function(c){return this.pushStack(e.map(this,function(e,a){return c.call(e,a,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:I,sort:[].sort,splice:[].splice};e.fn.init.prototype=e.fn;e.extend=e.fn.extend=function(){var c,a,b,B,f,G,h=arguments[0]||{},g=1,S=arguments.length,sa=!1;for(typeof h=="boolean"&&(sa=h,h=arguments[1]||{},g=2),typeof h!="object"&&!e.isFunction(h)&&
(h={}),S===g&&(h=this,--g);g<S;g++)if((c=arguments[g])!=null)for(a in c)b=h[a],B=c[a],h!==B&&(sa&&B&&(e.isPlainObject(B)||(f=e.isArray(B)))?(f?(f=!1,G=b&&e.isArray(b)?b:[]):G=b&&e.isPlainObject(b)?b:{},h[a]=e.extend(sa,G,B)):B!==d&&(h[a]=B));return h};e.extend({noConflict:function(c){a.$===e&&(a.$=G);c&&a.jQuery===e&&(a.jQuery=b);return e},isReady:!1,readyWait:1,holdReady:function(c){c?e.readyWait++:e.ready(!0)},ready:function(c){if(c===!0&&!--e.readyWait||c!==!0&&!e.isReady){if(!n.body)return setTimeout(e.ready,
1);e.isReady=!0;c!==!0&&--e.readyWait>0||(xa.resolveWith(n,[e]),e.fn.trigger&&e(n).trigger("ready").unbind("ready"))}},bindReady:function(){if(!xa){xa=e._Deferred();if(n.readyState==="complete")return setTimeout(e.ready,1);if(n.addEventListener)n.addEventListener("DOMContentLoaded",ma,!1),a.addEventListener("load",e.ready,!1);else if(n.attachEvent){n.attachEvent("onreadystatechange",ma);a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}n.documentElement.doScroll&&b&&c()}}},
isFunction:function(c){return e.type(c)==="function"},isArray:Array.isArray||function(c){return e.type(c)==="array"},isWindow:function(c){return c&&typeof c=="object"&&"setInterval"in c},isNaN:function(c){return c==null||!q.test(c)||isNaN(c)},type:function(c){return c==null?String(c):Y[P.call(c)]||"object"},isPlainObject:function(c){if(!c||e.type(c)!=="object"||c.nodeType||e.isWindow(c))return!1;if(c.constructor&&!X.call(c,"constructor")&&!X.call(c.constructor.prototype,"isPrototypeOf"))return!1;
for(var a in c);return a===d||X.call(c,a)},isEmptyObject:function(c){for(var e in c)return!1;return!0},error:function(c){throw c;},parseJSON:function(c){if(typeof c!="string"||!c)return null;c=e.trim(c);if(a.JSON&&a.JSON.parse)return a.JSON.parse(c);if(k.test(c.replace(w,"@").replace(p,"]").replace(m,"")))return(new Function("return "+c))();e.error("Invalid JSON: "+c)},parseXML:function(c,b,d){a.DOMParser?(d=new DOMParser,b=d.parseFromString(c,"text/xml")):(b=new ActiveXObject("Microsoft.XMLDOM"),
b.async="false",b.loadXML(c));d=b.documentElement;(!d||!d.nodeName||d.nodeName==="parsererror")&&e.error("Invalid XML: "+c);return b},noop:function(){},globalEval:function(c){c&&g.test(c)&&(a.execScript||function(c){a.eval.call(a,c)})(c)},camelCase:function(c){return c.replace(sa,ab)},nodeName:function(c,e){return c.nodeName&&c.nodeName.toUpperCase()===e.toUpperCase()},each:function(c,a,b){var B,f=0,G=c.length,h=G===d||e.isFunction(c);if(b)if(h)for(B in c){if(a.apply(c[B],b)===!1)break}else for(;f<
G;){if(a.apply(c[f++],b)===!1)break}else if(h)for(B in c){if(a.call(c[B],B,c[B])===!1)break}else for(;f<G;)if(a.call(c[f],f,c[f++])===!1)break;return c},trim:J?function(c){return c==null?"":J.call(c)}:function(c){return c==null?"":(c+"").replace(i,"").replace(j,"")},makeArray:function(c,a){var b=a||[];if(c!=null){var d=e.type(c);c.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(c)?I.call(b,c):e.merge(b,c)}return b},inArray:function(c,e){if(u)return u.call(e,c);for(var a=0,b=e.length;a<
b;a++)if(e[a]===c)return a;return-1},merge:function(c,e){var a=c.length,b=0;if(typeof e.length=="number")for(var o=e.length;b<o;b++)c[a++]=e[b];else for(;e[b]!==d;)c[a++]=e[b++];c.length=a;return c},grep:function(c,e,a){for(var b=[],o,a=!!a,d=0,B=c.length;d<B;d++)o=!!e(c[d],d),a!==o&&b.push(c[d]);return b},map:function(c,a,b){var B,f,G=[],h=0,g=c.length;if(c instanceof e||g!==d&&typeof g=="number"&&(g>0&&c[0]&&c[g-1]||g===0||e.isArray(c)))for(;h<g;h++)B=a(c[h],h,b),B!=null&&(G[G.length]=B);else for(f in c)B=
a(c[f],f,b),B!=null&&(G[G.length]=B);return G.concat.apply([],G)},guid:1,proxy:function(c,a){if(typeof a=="string"){var b=c[a];a=c;c=b}if(!e.isFunction(c))return d;var B=x.call(arguments,2),b=function(){return c.apply(a,B.concat(x.call(arguments)))};b.guid=c.guid=c.guid||b.guid||e.guid++;return b},access:function(c,a,b,B,f,G){var h=c.length;if(typeof a=="object"){for(var g in a)e.access(c,g,a[g],B,f,b);return c}if(b!==d){B=!G&&B&&e.isFunction(b);for(g=0;g<h;g++)f(c[g],a,B?b.call(c[g],g,f(c[g],a)):
b,G);return c}return h?f(c[0],a):d},now:function(){return(new Date).getTime()},uaMatch:function(c){c=c.toLowerCase();c=s.exec(c)||Q.exec(c)||r.exec(c)||c.indexOf("compatible")<0&&y.exec(c)||[];return{browser:c[1]||"",version:c[2]||"0"}},sub:function(){function c(e,a){return new c.fn.init(e,a)}e.extend(!0,c,this);c.superclass=this;c.fn=c.prototype=this();c.fn.constructor=c;c.sub=this.sub;c.fn.init=function(b,d){d&&d instanceof e&&!(d instanceof c)&&(d=c(d));return e.fn.init.call(this,b,d,a)};c.fn.init.prototype=
c.fn;var a=c(n);return c},browser:{}});e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(c,e){Y["[object "+e+"]"]=e.toLowerCase()});wa=e.uaMatch(bb);wa.browser&&(e.browser[wa.browser]=!0,e.browser.version=wa.version);e.browser.webkit&&(e.browser.safari=!0);g.test(" ")&&(i=/^[\s\xA0]+/,j=/[\s\xA0]+$/);f=e(n);n.addEventListener?ma=function(){n.removeEventListener("DOMContentLoaded",ma,!1);e.ready()}:n.attachEvent&&(ma=function(){n.readyState==="complete"&&(n.detachEvent("onreadystatechange",
ma),e.ready())});return e}(),I="done fail isResolved isRejected promise then always pipe".split(" "),na=[].slice;e.extend({_Deferred:function(){var c=[],a,b,d,f={done:function(){if(!d){var b=arguments,B,h,g,i,j;a&&(j=a,a=0);for(B=0,h=b.length;B<h;B++)g=b[B],i=e.type(g),i==="array"?f.done.apply(f,g):i==="function"&&c.push(g);j&&f.resolveWith(j[0],j[1])}return this},resolveWith:function(e,f){if(!d&&!a&&!b){f=f||[];b=1;try{for(;c[0];)c.shift().apply(e,f)}finally{a=[e,f],b=0}}return this},resolve:function(){f.resolveWith(this,
arguments);return this},isResolved:function(){return!!b||!!a},cancel:function(){d=1;c=[];return this}};return f},Deferred:function(c){var a=e._Deferred(),b=e._Deferred(),d;e.extend(a,{then:function(c,e){a.done(c).fail(e);return this},always:function(){return a.done.apply(a,arguments).fail.apply(this,arguments)},fail:b.done,rejectWith:b.resolveWith,reject:b.resolve,isRejected:b.isResolved,pipe:function(c,b){return e.Deferred(function(d){e.each({done:[c,"resolve"],fail:[b,"reject"]},function(c,b){var B=
b[0],f=b[1],h;e.isFunction(B)?a[c](function(){h=B.apply(this,arguments);h&&e.isFunction(h.promise)?h.promise().then(d.resolve,d.reject):d[f](h)}):a[c](d[f])})}).promise()},promise:function(c){if(c==null){if(d)return d;d=c={}}for(var e=I.length;e--;)c[I[e]]=a[I[e]];return c}});a.done(b.cancel).fail(a.cancel);delete a.cancel;c&&c.call(a,a);return a},when:function(c){function a(c){return function(e){b[c]=arguments.length>1?na.call(arguments,0):e;--h||g.resolveWith(g,na.call(b,0))}}var b=arguments,d=
0,f=b.length,h=f,g=f<=1&&c&&e.isFunction(c.promise)?c:e.Deferred();if(f>1){for(;d<f;d++)b[d]&&e.isFunction(b[d].promise)?b[d].promise().then(a(d),g.reject):--h;h||g.resolveWith(g,b)}else g!==c&&g.resolveWith(g,f?[c]:[]);return g.promise()}});e.support=function(){var c=n.createElement("div"),a=n.documentElement,b,d,f,h,g,i,j,q,l,k,w,p,m,s,Q;c.setAttribute("className","t");c.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";b=c.getElementsByTagName("*");
d=c.getElementsByTagName("a")[0];if(!b||!b.length||!d)return{};f=n.createElement("select");h=f.appendChild(n.createElement("option"));g=c.getElementsByTagName("input")[0];j={leadingWhitespace:c.firstChild.nodeType===3,tbody:!c.getElementsByTagName("tbody").length,htmlSerialize:!!c.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.55$/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:g.value==="on",optSelected:h.selected,
getSetAttribute:c.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};g.checked=!0;j.noCloneChecked=g.cloneNode(!0).checked;f.disabled=!0;j.optDisabled=!h.disabled;try{delete c.test}catch(r){j.deleteExpando=!1}!c.addEventListener&&c.attachEvent&&c.fireEvent&&(c.attachEvent("onclick",function(){j.noCloneEvent=!1}),c.cloneNode(!0).fireEvent("onclick"));g=n.createElement("input");g.value=
"t";g.setAttribute("type","radio");j.radioValue=g.value==="t";g.setAttribute("checked","checked");c.appendChild(g);q=n.createDocumentFragment();q.appendChild(c.firstChild);j.checkClone=q.cloneNode(!0).cloneNode(!0).lastChild.checked;c.innerHTML="";c.style.width=c.style.paddingLeft="1px";l=n.getElementsByTagName("body")[0];b=n.createElement(l?"div":"body");w={visibility:"hidden",width:0,height:0,border:0,margin:0};l&&e.extend(w,{position:"absolute",left:-1E3,top:-1E3});for(s in w)b.style[s]=w[s];b.appendChild(c);
k=l||a;k.insertBefore(b,k.firstChild);j.appendChecked=g.checked;j.boxModel=c.offsetWidth===2;"zoom"in c.style&&(c.style.display="inline",c.style.zoom=1,j.inlineBlockNeedsLayout=c.offsetWidth===2,c.style.display="",c.innerHTML="<div style='width:4px;'></div>",j.shrinkWrapBlocks=c.offsetWidth!==2);c.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";p=c.getElementsByTagName("td");Q=p[0].offsetHeight===0;p[0].style.display="";p[1].style.display="none";j.reliableHiddenOffsets=
Q&&p[0].offsetHeight===0;c.innerHTML="";n.defaultView&&n.defaultView.getComputedStyle&&(i=n.createElement("div"),i.style.width="0",i.style.marginRight="0",c.appendChild(i),j.reliableMarginRight=(parseInt((n.defaultView.getComputedStyle(i,null)||{marginRight:0}).marginRight,10)||0)===0);b.innerHTML="";k.removeChild(b);if(c.attachEvent)for(s in{submit:1,change:1,focusin:1})m="on"+s,Q=m in c,Q||(c.setAttribute(m,"return;"),Q=typeof c[m]=="function"),j[s+"Bubbles"]=Q;b=q=f=h=l=i=c=g=null;return j}();
e.boxModel=e.support.boxModel;var R=/^(?:\{.*\}|\[.*\])$/,ra=/([a-z])([A-Z])/g;e.extend({cache:{},uuid:0,expando:"jQuery"+(e.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(c){c=c.nodeType?e.cache[c[e.expando]]:c[e.expando];return!!c&&!qa(c)},data:function(c,a,b,f){if(e.acceptData(c)){var g=e.expando,h=typeof a=="string",i,j=c.nodeType,q=j?e.cache:c,l=j?c[e.expando]:c[e.expando]&&e.expando;if(l&&(!f||!l||q[l][g])||
!(h&&b===d)){l||(j?c[e.expando]=l=++e.uuid:l=e.expando);q[l]||(q[l]={},j||(q[l].toJSON=e.noop));if(typeof a=="object"||typeof a=="function")f?q[l][g]=e.extend(q[l][g],a):q[l]=e.extend(q[l],a);i=q[l];f&&(i[g]||(i[g]={}),i=i[g]);b!==d&&(i[e.camelCase(a)]=b);return a==="events"&&!i[a]?i[g]&&i[g].events:h?i[e.camelCase(a)]||i[a]:i}}},removeData:function(c,b,d){if(e.acceptData(c)){var f=e.expando,g=c.nodeType,h=g?e.cache:c,i=g?c[e.expando]:e.expando;if(h[i]){if(b){var j=d?h[i][f]:h[i];if(j&&(delete j[b],
!qa(j)))return}if(d&&(delete h[i][f],!qa(h[i])))return;b=h[i][f];e.support.deleteExpando||h!=a?delete h[i]:h[i]=null;b?(h[i]={},g||(h[i].toJSON=e.noop),h[i][f]=b):g&&(e.support.deleteExpando?delete c[e.expando]:c.removeAttribute?c.removeAttribute(e.expando):c[e.expando]=null)}}},_data:function(c,a,b){return e.data(c,a,b,!0)},acceptData:function(c){if(c.nodeName){var a=e.noData[c.nodeName.toLowerCase()];if(a)return a!==!0&&c.getAttribute("classid")===a}return!0}});e.fn.extend({data:function(c,a){var b=
null;if(typeof c=="undefined"){if(this.length&&(b=e.data(this[0]),this[0].nodeType===1))for(var f=this[0].attributes,g,h=0,i=f.length;h<i;h++)g=f[h].name,g.indexOf("data-")===0&&(g=e.camelCase(g.substring(5)),fa(this[0],g,b[g]));return b}if(typeof c=="object")return this.each(function(){e.data(this,c)});var j=c.split(".");j[1]=j[1]?"."+j[1]:"";return a===d?(b=this.triggerHandler("getData"+j[1]+"!",[j[0]]),b===d&&this.length&&(b=e.data(this[0],c),b=fa(this[0],c,b)),b===d&&j[1]?this.data(j[0]):b):this.each(function(){var b=
e(this),d=[j[0],a];b.triggerHandler("setData"+j[1]+"!",d);e.data(this,c,a);b.triggerHandler("changeData"+j[1]+"!",d)})},removeData:function(c){return this.each(function(){e.removeData(this,c)})}});e.extend({_mark:function(c,a){c&&(a=(a||"fx")+"mark",e.data(c,a,(e.data(c,a,d,!0)||0)+1,!0))},_unmark:function(c,a,b){c!==!0&&(b=a,a=c,c=!1);if(a){var b=b||"fx",f=b+"mark";(c=c?0:(e.data(a,f,d,!0)||1)-1)?e.data(a,f,c,!0):(e.removeData(a,f,!0),ba(a,b,"mark"))}},queue:function(c,a,b){if(c){var a=(a||"fx")+
"queue",f=e.data(c,a,d,!0);b&&(!f||e.isArray(b)?f=e.data(c,a,e.makeArray(b),!0):f.push(b));return f||[]}},dequeue:function(c,a){var a=a||"fx",b=e.queue(c,a),d=b.shift();d==="inprogress"&&(d=b.shift());d&&(a==="fx"&&b.unshift("inprogress"),d.call(c,function(){e.dequeue(c,a)}));b.length||(e.removeData(c,a+"queue",!0),ba(c,a,"queue"))}});e.fn.extend({queue:function(c,a){typeof c!="string"&&(a=c,c="fx");return a===d?e.queue(this[0],c):this.each(function(){var b=e.queue(this,c,a);c==="fx"&&b[0]!=="inprogress"&&
e.dequeue(this,c)})},dequeue:function(c){return this.each(function(){e.dequeue(this,c)})},delay:function(c,a){c=e.fx?e.fx.speeds[c]||c:c;a=a||"fx";return this.queue(a,function(){var b=this;setTimeout(function(){e.dequeue(b,a)},c)})},clearQueue:function(c){return this.queue(c||"fx",[])},promise:function(c){function a(){--h||b.resolveWith(f,[f])}typeof c!="string"&&(c=d);c=c||"fx";var b=e.Deferred(),f=this,g=f.length,h=1,i=c+"defer",j=c+"queue";c+="mark";for(var q;g--;)if(q=e.data(f[g],i,d,!0)||(e.data(f[g],
j,d,!0)||e.data(f[g],c,d,!0))&&e.data(f[g],i,e._Deferred(),!0))h++,q.done(a);a();return b.promise()}});var Ha=/[\n\t\r]/g,X=/\s+/,x=/\r/g,Y=/^(?:button|input)$/i,ta=/^(?:button|input|object|select|textarea)$/i,ya=/^a(?:rea)?$/i,ua=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,k=/\:|^on/,K,ga;e.fn.extend({attr:function(c,a){return e.access(this,c,a,!0,e.attr)},removeAttr:function(c){return this.each(function(){e.removeAttr(this,
c)})},prop:function(c,a){return e.access(this,c,a,!0,e.prop)},removeProp:function(c){c=e.propFix[c]||c;return this.each(function(){try{this[c]=d,delete this[c]}catch(a){}})},addClass:function(c){var a,b,d,f,g,h,i;if(e.isFunction(c))return this.each(function(a){e(this).addClass(c.call(this,a,this.className))});if(c&&typeof c=="string"){a=c.split(X);for(b=0,d=this.length;b<d;b++)if(f=this[b],f.nodeType===1)if(!f.className&&a.length===1)f.className=c;else{g=" "+f.className+" ";for(h=0,i=a.length;h<i;h++)~g.indexOf(" "+
a[h]+" ")||(g+=a[h]+" ");f.className=e.trim(g)}}return this},removeClass:function(c){var a,b,f,g,h,i,j;if(e.isFunction(c))return this.each(function(a){e(this).removeClass(c.call(this,a,this.className))});if(c&&typeof c=="string"||c===d){a=(c||"").split(X);for(b=0,f=this.length;b<f;b++)if(g=this[b],g.nodeType===1&&g.className)if(c){h=(" "+g.className+" ").replace(Ha," ");for(i=0,j=a.length;i<j;i++)h=h.replace(" "+a[i]+" "," ");g.className=e.trim(h)}else g.className=""}return this},toggleClass:function(c,
a){var b=typeof c,d=typeof a=="boolean";return e.isFunction(c)?this.each(function(b){e(this).toggleClass(c.call(this,b,this.className,a),a)}):this.each(function(){if(b==="string")for(var f,g=0,h=e(this),i=a,j=c.split(X);f=j[g++];)i=d?i:!h.hasClass(f),h[i?"addClass":"removeClass"](f);else if(b==="undefined"||b==="boolean")this.className&&e._data(this,"__className__",this.className),this.className=this.className||c===!1?"":e._data(this,"__className__")||""})},hasClass:function(c){for(var c=" "+c+" ",
a=0,e=this.length;a<e;a++)if((" "+this[a].className+" ").replace(Ha," ").indexOf(c)>-1)return!0;return!1},val:function(c){var a,b,f=this[0];if(!arguments.length){if(f){if((a=e.valHooks[f.nodeName.toLowerCase()]||e.valHooks[f.type])&&"get"in a&&(b=a.get(f,"value"))!==d)return b;b=f.value;return typeof b=="string"?b.replace(x,""):b==null?"":b}return d}var g=e.isFunction(c);return this.each(function(b){var f=e(this),h;if(this.nodeType===1&&(g?h=c.call(this,b,f.val()):h=c,h==null?h="":typeof h=="number"?
h+="":e.isArray(h)&&(h=e.map(h,function(c){return c==null?"":c+""})),a=e.valHooks[this.nodeName.toLowerCase()]||e.valHooks[this.type],!a||!("set"in a)||a.set(this,h,"value")===d))this.value=h})}});e.extend({valHooks:{option:{get:function(c){var a=c.attributes.value;return!a||a.specified?c.value:c.text}},select:{get:function(c){var a,b=c.selectedIndex,d=[],f=c.options,c=c.type==="select-one";if(b<0)return null;for(var h=c?b:0,g=c?b+1:f.length;h<g;h++)if(a=f[h],a.selected&&(e.support.optDisabled?!a.disabled:
a.getAttribute("disabled")===null)&&(!a.parentNode.disabled||!e.nodeName(a.parentNode,"optgroup"))){a=e(a).val();if(c)return a;d.push(a)}return c&&!d.length&&f.length?e(f[b]).val():d},set:function(c,a){var b=e.makeArray(a);e(c).find("option").each(function(){this.selected=e.inArray(e(this).val(),b)>=0});b.length||(c.selectedIndex=-1);return b}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(c,a,b,f){var h=c.nodeType;if(!c||
h===3||h===8||h===2)return d;if(f&&a in e.attrFn)return e(c)[a](b);if(!("getAttribute"in c))return e.prop(c,a,b);var g,i;(f=h!==1||!e.isXMLDoc(c))&&(a=e.attrFix[a]||a,i=e.attrHooks[a],i||(ua.test(a)?i=ga:K&&a!=="className"&&(e.nodeName(c,"form")||k.test(a))&&(i=K)));if(b!==d){if(b===null)return e.removeAttr(c,a),d;if(i&&"set"in i&&f&&(g=i.set(c,b,a))!==d)return g;c.setAttribute(a,""+b);return b}if(i&&"get"in i&&f&&(g=i.get(c,a))!==null)return g;g=c.getAttribute(a);return g===null?d:g},removeAttr:function(c,
a){var b;c.nodeType===1&&(a=e.attrFix[a]||a,e.support.getSetAttribute?c.removeAttribute(a):(e.attr(c,a,""),c.removeAttributeNode(c.getAttributeNode(a))),ua.test(a)&&(b=e.propFix[a]||a)in c&&(c[b]=!1))},attrHooks:{type:{set:function(c,a){if(Y.test(c.nodeName)&&c.parentNode)e.error("type property can't be changed");else if(!e.support.radioValue&&a==="radio"&&e.nodeName(c,"input")){var b=c.value;c.setAttribute("type",a);b&&(c.value=b);return a}}},tabIndex:{get:function(c){var a=c.getAttributeNode("tabIndex");
return a&&a.specified?parseInt(a.value,10):ta.test(c.nodeName)||ya.test(c.nodeName)&&c.href?0:d}},value:{get:function(c,a){return K&&e.nodeName(c,"button")?K.get(c,a):a in c?c.value:null},set:function(c,a,b){if(K&&e.nodeName(c,"button"))return K.set(c,a,b);c.value=a}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",
contenteditable:"contentEditable"},prop:function(c,a,b){var f=c.nodeType;if(!c||f===3||f===8||f===2)return d;var h,g;(f!==1||!e.isXMLDoc(c))&&(a=e.propFix[a]||a,g=e.propHooks[a]);return b!==d?g&&"set"in g&&(h=g.set(c,b,a))!==d?h:c[a]=b:g&&"get"in g&&(h=g.get(c,a))!==d?h:c[a]},propHooks:{}});ga={get:function(c,a){return e.prop(c,a)?a.toLowerCase():d},set:function(c,a,b){var d;a===!1?e.removeAttr(c,b):(d=e.propFix[b]||b,d in c&&(c[d]=!0),c.setAttribute(b,b.toLowerCase()));return b}};e.support.getSetAttribute||
(e.attrFix=e.propFix,K=e.attrHooks.name=e.attrHooks.title=e.valHooks.button={get:function(c,a){var e;return(e=c.getAttributeNode(a))&&e.nodeValue!==""?e.nodeValue:d},set:function(c,a,e){if(c=c.getAttributeNode(e))return c.nodeValue=a}},e.each(["width","height"],function(c,a){e.attrHooks[a]=e.extend(e.attrHooks[a],{set:function(c,e){if(e==="")return c.setAttribute(a,"auto"),e}})}));e.support.hrefNormalized||e.each(["href","src","width","height"],function(c,a){e.attrHooks[a]=e.extend(e.attrHooks[a],
{get:function(c){c=c.getAttribute(a,2);return c===null?d:c}})});e.support.style||(e.attrHooks.style={get:function(c){return c.style.cssText.toLowerCase()||d},set:function(c,a){return c.style.cssText=""+a}});e.support.optSelected||(e.propHooks.selected=e.extend(e.propHooks.selected,{get:function(){}}));e.support.checkOn||e.each(["radio","checkbox"],function(){e.valHooks[this]={get:function(c){return c.getAttribute("value")===null?"on":c.value}}});e.each(["radio","checkbox"],function(){e.valHooks[this]=
e.extend(e.valHooks[this],{set:function(c,a){if(e.isArray(a))return c.checked=e.inArray(e(c).val(),a)>=0}})});var P=/\.(.*)$/,U=/^(?:textarea|input|select)$/i,s=/\./g,L=/ /g,E=/[^\w\s.|`]/g,F=function(c){return c.replace(E,"\\$&")};e.event={add:function(c,a,b,f){if(c.nodeType!==3&&c.nodeType!==8){if(b===!1)b=ea;else if(!b)return;var g,h;b.handler&&(g=b,b=g.handler);b.guid||(b.guid=e.guid++);var i=e._data(c);if(i){var j=i.events,q=i.handle;j||(i.events=j={});q||(i.handle=q=function(c){return typeof e!=
"undefined"&&(!c||e.event.triggered!==c.type)?e.event.handle.apply(q.elem,arguments):d});q.elem=c;a=a.split(" ");for(var l=0,k;i=a[l++];){h=g?e.extend({},g):{handler:b,data:f};i.indexOf(".")>-1?(k=i.split("."),i=k.shift(),h.namespace=k.slice(0).sort().join(".")):(k=[],h.namespace="");h.type=i;h.guid||(h.guid=b.guid);var w=j[i],p=e.event.special[i]||{};if(!w&&(w=j[i]=[],!p.setup||p.setup.call(c,f,k,q)===!1))c.addEventListener?c.addEventListener(i,q,!1):c.attachEvent&&c.attachEvent("on"+i,q);p.add&&
(p.add.call(c,h),h.handler.guid||(h.handler.guid=b.guid));w.push(h);e.event.global[i]=!0}c=null}}},global:{},remove:function(c,a,b,f){if(c.nodeType!==3&&c.nodeType!==8){b===!1&&(b=ea);var h,g,i=0,j,q,l,k,w,p,m=e.hasData(c)&&e._data(c),s=m&&m.events;if(m&&s)if(a&&a.type&&(b=a.handler,a=a.type),!a||typeof a=="string"&&a.charAt(0)===".")for(h in a=a||"",s)e.event.remove(c,h+a);else{for(a=a.split(" ");h=a[i++];)if(k=h,j=h.indexOf(".")<0,q=[],j||(q=h.split("."),h=q.shift(),l=RegExp("(^|\\.)"+e.map(q.slice(0).sort(),
F).join("\\.(?:.*\\.)?")+"(\\.|$)")),w=s[h],w)if(b){k=e.event.special[h]||{};for(g=f||0;g<w.length;g++)if(p=w[g],b.guid===p.guid){if(j||l.test(p.namespace))f==null&&w.splice(g--,1),k.remove&&k.remove.call(c,p);if(f!=null)break}if(w.length===0||f!=null&&w.length===1)(!k.teardown||k.teardown.call(c,q)===!1)&&e.removeEvent(c,h,m.handle),delete s[h]}else for(g=0;g<w.length;g++)if(p=w[g],j||l.test(p.namespace))e.event.remove(c,k,p.handler,g),w.splice(g--,1);if(e.isEmptyObject(s))a=m.handle,a&&(a.elem=
null),delete m.events,delete m.handle,e.isEmptyObject(m)&&e.removeData(c,d,!0)}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,b,f,h){var g=c.type||c,i=[],j;g.indexOf("!")>=0&&(g=g.slice(0,-1),j=!0);g.indexOf(".")>=0&&(i=g.split("."),g=i.shift(),i.sort());if(f&&!e.event.customEvent[g]||e.event.global[g]){c=typeof c=="object"?c[e.expando]?c:new e.Event(g,c):new e.Event(g);c.type=g;c.exclusive=j;c.namespace=i.join(".");c.namespace_re=RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+
"(\\.|$)");if(h||!f)c.preventDefault(),c.stopPropagation();if(f){if(!(f.nodeType===3||f.nodeType===8)){c.result=d;c.target=f;b=b!=null?e.makeArray(b):[];b.unshift(c);i=f;h=g.indexOf(":")<0?"on"+g:"";do j=e._data(i,"handle"),c.currentTarget=i,j&&j.apply(i,b),h&&e.acceptData(i)&&i[h]&&i[h].apply(i,b)===!1&&(c.result=!1,c.preventDefault()),i=i.parentNode||i.ownerDocument||i===c.target.ownerDocument&&a;while(i&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var q,i=e.event.special[g]||{};if((!i._default||
i._default.call(f.ownerDocument,c)===!1)&&(g!=="click"||!e.nodeName(f,"a"))&&e.acceptData(f)){try{h&&f[g]&&(q=f[h],q&&(f[h]=null),e.event.triggered=g,f[g]())}catch(l){}q&&(f[h]=q);e.event.triggered=d}}return c.result}}else e.each(e.cache,function(){var a=this[e.expando];a&&a.events&&a.events[g]&&e.event.trigger(c,b,a.handle.elem)})}},handle:function(c){var c=e.event.fix(c||a.event),b=((e._data(this,"events")||{})[c.type]||[]).slice(0),f=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,
0);g[0]=c;c.currentTarget=this;for(var h=0,i=b.length;h<i;h++){var j=b[h];if(f||c.namespace_re.test(j.namespace))if(c.handler=j.handler,c.data=j.data,c.handleObj=j,j=j.handler.apply(this,g),j!==d&&(c.result=j,j===!1&&(c.preventDefault(),c.stopPropagation())),c.isImmediatePropagationStopped())break}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(c){if(c[e.expando])return c;for(var a=c,c=e.Event(a),b=this.props.length,f;b;)f=this.props[--b],c[f]=a[f];c.target||(c.target=c.srcElement||n);c.target.nodeType===3&&(c.target=c.target.parentNode);!c.relatedTarget&&c.fromElement&&(c.relatedTarget=c.fromElement===c.target?c.toElement:c.fromElement);if(c.pageX==null&&c.clientX!=null)b=c.target.ownerDocument||n,a=b.documentElement,b=b.body,c.pageX=c.clientX+(a&&a.scrollLeft||b&&b.scrollLeft||0)-(a&&a.clientLeft||b&&b.clientLeft||0),c.pageY=
c.clientY+(a&&a.scrollTop||b&&b.scrollTop||0)-(a&&a.clientTop||b&&b.clientTop||0);c.which==null&&(c.charCode!=null||c.keyCode!=null)&&(c.which=c.charCode!=null?c.charCode:c.keyCode);!c.metaKey&&c.ctrlKey&&(c.metaKey=c.ctrlKey);!c.which&&c.button!==d&&(c.which=c.button&1?1:c.button&2?3:c.button&4?2:0);return c},guid:1E8,proxy:e.proxy,special:{ready:{setup:e.bindReady,teardown:e.noop},live:{add:function(c){e.event.add(this,H(c.origType,c.selector),e.extend({},c,{handler:N,guid:c.handler.guid}))},remove:function(c){e.event.remove(this,
H(c.origType,c.selector),c)}},beforeunload:{setup:function(c,a,b){e.isWindow(this)&&(this.onbeforeunload=b)},teardown:function(c,a){this.onbeforeunload===a&&(this.onbeforeunload=null)}}}};e.removeEvent=n.removeEventListener?function(c,a,b){c.removeEventListener&&c.removeEventListener(a,b,!1)}:function(c,a,b){c.detachEvent&&c.detachEvent("on"+a,b)};e.Event=function(c,a){if(!this.preventDefault)return new e.Event(c,a);c&&c.type?(this.originalEvent=c,this.type=c.type,this.isDefaultPrevented=c.defaultPrevented||
c.returnValue===!1||c.getPreventDefault&&c.getPreventDefault()?W:ea):this.type=c;a&&e.extend(this,a);this.timeStamp=e.now();this[e.expando]=!0};e.Event.prototype={preventDefault:function(){this.isDefaultPrevented=W;var c=this.originalEvent;!c||(c.preventDefault?c.preventDefault():c.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=W;var c=this.originalEvent;!c||(c.stopPropagation&&c.stopPropagation(),c.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=
W;this.stopPropagation()},isDefaultPrevented:ea,isPropagationStopped:ea,isImmediatePropagationStopped:ea};var q=function(c){var a=c.relatedTarget,b=!1,d=c.type;c.type=c.data;a!==this&&(a&&(b=e.contains(this,a)),b||(e.event.handle.apply(this,arguments),c.type=d))},Q=function(c){c.type=c.data;e.event.handle.apply(this,arguments)};e.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(c,a){e.event.special[c]={setup:function(b){e.event.add(this,a,b&&b.selector?Q:q,c)},teardown:function(c){e.event.remove(this,
a,c&&c.selector?Q:q)}}});e.support.submitBubbles||(e.event.special.submit={setup:function(){if(e.nodeName(this,"form"))return!1;else e.event.add(this,"click.specialSubmit",function(c){var a=c.target,b=a.type;(b==="submit"||b==="image")&&e(a).closest("form").length&&V("submit",this,arguments)}),e.event.add(this,"keypress.specialSubmit",function(c){var a=c.target,b=a.type;(b==="text"||b==="password")&&e(a).closest("form").length&&c.keyCode===13&&V("submit",this,arguments)})},teardown:function(){e.event.remove(this,
".specialSubmit")}});if(!e.support.changeBubbles){var w,y=function(c){var a=c.type,b=c.value;a==="radio"||a==="checkbox"?b=c.checked:a==="select-multiple"?b=c.selectedIndex>-1?e.map(c.options,function(c){return c.selected}).join("-"):"":e.nodeName(c,"select")&&(b=c.selectedIndex);return b},J=function(c,a){var b=c.target,f,g;if(U.test(b.nodeName)&&!b.readOnly&&(f=e._data(b,"_change_data"),g=y(b),(c.type!=="focusout"||b.type!=="radio")&&e._data(b,"_change_data",g),!(f===d||g===f)))if(f!=null||g)c.type=
"change",c.liveFired=d,e.event.trigger(c,a,b)};e.event.special.change={filters:{focusout:J,beforedeactivate:J,click:function(c){var a=c.target,b=e.nodeName(a,"input")?a.type:"";(b==="radio"||b==="checkbox"||e.nodeName(a,"select"))&&J.call(this,c)},keydown:function(c){var a=c.target,b=e.nodeName(a,"input")?a.type:"";(c.keyCode===13&&!e.nodeName(a,"textarea")||c.keyCode===32&&(b==="checkbox"||b==="radio")||b==="select-multiple")&&J.call(this,c)},beforeactivate:function(c){c=c.target;e._data(c,"_change_data",
y(c))}},setup:function(){if(this.type==="file")return!1;for(var c in w)e.event.add(this,c+".specialChange",w[c]);return U.test(this.nodeName)},teardown:function(){e.event.remove(this,".specialChange");return U.test(this.nodeName)}};w=e.event.special.change.filters;w.focus=w.beforeactivate}e.support.focusinBubbles||e.each({focus:"focusin",blur:"focusout"},function(c,a){function b(c){var d=e.event.fix(c);d.type=a;d.originalEvent={};e.event.trigger(d,null,d.target);d.isDefaultPrevented()&&c.preventDefault()}
var d=0;e.event.special[a]={setup:function(){d++===0&&n.addEventListener(c,b,!0)},teardown:function(){--d===0&&n.removeEventListener(c,b,!0)}}});e.each(["bind","one"],function(c,a){e.fn[a]=function(c,b,f){var g;if(typeof c=="object"){for(var h in c)this[a](h,b,c[h],f);return this}if(arguments.length===2||b===!1)f=b,b=d;a==="one"?(g=function(c){e(this).unbind(c,g);return f.apply(this,arguments)},g.guid=f.guid||e.guid++):g=f;if(c==="unload"&&a!=="one")this.one(c,b,f);else{h=0;for(var i=this.length;h<
i;h++)e.event.add(this[h],c,g,b)}return this}});e.fn.extend({unbind:function(c,a){if(typeof c=="object"&&!c.preventDefault)for(var b in c)this.unbind(b,c[b]);else{b=0;for(var d=this.length;b<d;b++)e.event.remove(this[b],c,a)}return this},delegate:function(c,a,b,e){return this.live(a,b,e,c)},undelegate:function(c,a,b){return arguments.length===0?this.unbind("live"):this.die(a,null,b,c)},trigger:function(c,a){return this.each(function(){e.event.trigger(c,a,this)})},triggerHandler:function(c,a){if(this[0])return e.event.trigger(c,
a,this[0],!0)},toggle:function(c){var a=arguments,b=c.guid||e.guid++,d=0,f=function(b){var f=(e.data(this,"lastToggle"+c.guid)||0)%d;e.data(this,"lastToggle"+c.guid,f+1);b.preventDefault();return a[f].apply(this,arguments)||!1};for(f.guid=b;d<a.length;)a[d++].guid=b;return this.click(f)},hover:function(c,a){return this.mouseenter(c).mouseleave(a||c)}});var T={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};e.each(["live","die"],function(c,a){e.fn[a]=function(c,b,f,g){var h=
0,i,j,q,l=g||this.selector,k=g?this:e(this.context);if(typeof c=="object"&&!c.preventDefault){for(q in c)k[a](q,b,c[q],l);return this}if(a==="die"&&!c&&g&&g.charAt(0)===".")return k.unbind(g),this;if(b===!1||e.isFunction(b))f=b||ea,b=d;for(c=(c||"").split(" ");(g=c[h++])!=null;)if(i=P.exec(g),j="",i&&(j=i[0],g=g.replace(P,"")),g==="hover")c.push("mouseenter"+j,"mouseleave"+j);else if(q=g,T[g]?(c.push(T[g]+j),g+=j):g=(T[g]||g)+j,a==="live"){j=0;for(var w=k.length;j<w;j++)e.event.add(k[j],"live."+H(g,
l),{data:b,selector:l,handler:f,origType:g,origHandler:f,preType:q})}else k.unbind("live."+H(g,l),f);return this}});e.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(c,a){e.fn[a]=function(c,b){b==null&&(b=c,c=null);return arguments.length>0?this.bind(a,c,b):this.trigger(a)};e.attrFn&&(e.attrFn[a]=!0)});(function(){function c(c,a,b,e,
d,f){for(var d=0,g=e.length;d<g;d++){var h=e[d];if(h){for(var o=!1,h=h[c];h;){if(h.sizcache===b){o=e[h.sizset];break}if(h.nodeType===1)if(f||(h.sizcache=b,h.sizset=d),typeof a!="string"){if(h===a){o=!0;break}}else if(l.filter(a,[h]).length>0){o=h;break}h=h[c]}e[d]=o}}}function a(c,b,e,d,f,g){for(var f=0,h=d.length;f<h;f++){var o=d[f];if(o){for(var i=!1,o=o[c];o;){if(o.sizcache===e){i=d[o.sizset];break}o.nodeType===1&&!g&&(o.sizcache=e,o.sizset=f);if(o.nodeName.toLowerCase()===b){i=o;break}o=o[c]}d[f]=
i}}}var b=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,f=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,q=/\W/;[0,0].sort(function(){i=!1;return 0});var l=function(c,a,e,d){e=e||[];a=a||n;var f=a;if(a.nodeType!==1&&a.nodeType!==9)return[];if(!c||typeof c!="string")return e;var h,o,i,G,j,q,da,p=!0,m=l.isXML(a),O=[],Q=c;do if(b.exec(""),h=b.exec(Q),h&&(Q=h[3],O.push(h[1]),h[2])){G=h[3];break}while(h);if(O.length>
1&&w.exec(c))if(O.length===2&&k.relative[O[0]])o=X(O[0]+O[1],a);else for(o=k.relative[O[0]]?[a]:l(O.shift(),a);O.length;)c=O.shift(),k.relative[c]&&(c+=O.shift()),o=X(c,o);else if(!d&&O.length>1&&a.nodeType===9&&!m&&k.match.ID.test(O[0])&&!k.match.ID.test(O[O.length-1])&&(j=l.find(O.shift(),a,m),a=j.expr?l.filter(j.expr,j.set)[0]:j.set[0]),a)for(j=d?{expr:O.pop(),set:s(d)}:l.find(O.pop(),O.length===1&&(O[0]==="~"||O[0]==="+")&&a.parentNode?a.parentNode:a,m),o=j.expr?l.filter(j.expr,j.set):j.set,O.length>
0?i=s(o):p=!1;O.length;)q=O.pop(),da=q,k.relative[q]?da=O.pop():q="",da==null&&(da=a),k.relative[q](i,da,m);else i=[];i||(i=o);i||l.error(q||c);if(g.call(i)==="[object Array]")if(p)if(a&&a.nodeType===1)for(c=0;i[c]!=null;c++)i[c]&&(i[c]===!0||i[c].nodeType===1&&l.contains(a,i[c]))&&e.push(o[c]);else for(c=0;i[c]!=null;c++)i[c]&&i[c].nodeType===1&&e.push(o[c]);else e.push.apply(e,i);else s(i,e);G&&(l(G,f,e,d),l.uniqueSort(e));return e};l.uniqueSort=function(c){if(r&&(h=i,c.sort(r),h))for(var a=1;a<
c.length;a++)c[a]===c[a-1]&&c.splice(a--,1);return c};l.matches=function(c,a){return l(c,null,null,a)};l.matchesSelector=function(c,a){return l(a,null,null,[c]).length>0};l.find=function(c,a,b){var e;if(!c)return[];for(var d=0,f=k.order.length;d<f;d++){var g,h=k.order[d];if(g=k.leftMatch[h].exec(c)){var o=g[1];g.splice(1,1);if(o.substr(o.length-1)!=="\\"&&(g[1]=(g[1]||"").replace(j,""),e=k.find[h](g,a,b),e!=null)){c=c.replace(k.match[h],"");break}}}e||(e=typeof a.getElementsByTagName!="undefined"?
a.getElementsByTagName("*"):[]);return{set:e,expr:c}};l.filter=function(c,a,b,e){for(var f,g,h=c,o=[],i=a,G=a&&a[0]&&l.isXML(a[0]);c&&a.length;){for(var j in k.filter)if((f=k.leftMatch[j].exec(c))!=null&&f[2]){var B,S,q=k.filter[j];S=f[1];g=!1;f.splice(1,1);if(S.substr(S.length-1)!=="\\"){i===o&&(o=[]);if(k.preFilter[j])if(f=k.preFilter[j](f,i,b,o,e,G)){if(f===!0)continue}else g=B=!0;if(f)for(var da=0;(S=i[da])!=null;da++)if(S){B=q(S,f,da,i);var w=e^!!B;b&&B!=null?w?g=!0:i[da]=!1:w&&(o.push(S),g=
!0)}if(B!==d){b||(i=o);c=c.replace(k.match[j],"");if(!g)return[];break}}}if(c===h)if(g==null)l.error(c);else break;h=c}return i};l.error=function(c){throw"Syntax error, unrecognized expression: "+c;};var k=l.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(c){return c.getAttribute("href")},type:function(c){return c.getAttribute("type")}},relative:{"+":function(c,a){var b=
typeof a=="string",e=b&&!q.test(a),b=b&&!e;e&&(a=a.toLowerCase());for(var e=0,d=c.length,f;e<d;e++)if(f=c[e]){for(;(f=f.previousSibling)&&f.nodeType!==1;);c[e]=b||f&&f.nodeName.toLowerCase()===a?f||!1:f===a}b&&l.filter(a,c,!0)},">":function(c,a){var b,e=typeof a=="string",d=0,f=c.length;if(e&&!q.test(a))for(a=a.toLowerCase();d<f;d++){if(b=c[d])b=b.parentNode,c[d]=b.nodeName.toLowerCase()===a?b:!1}else{for(;d<f;d++)b=c[d],b&&(c[d]=e?b.parentNode:b.parentNode===a);e&&l.filter(a,c,!0)}},"":function(b,
e,d){var g,h=f++,i=c;typeof e=="string"&&!q.test(e)&&(e=e.toLowerCase(),g=e,i=a);i("parentNode",e,h,b,g,d)},"~":function(b,e,d){var g,h=f++,i=c;typeof e=="string"&&!q.test(e)&&(e=e.toLowerCase(),g=e,i=a);i("previousSibling",e,h,b,g,d)}},find:{ID:function(c,a,b){if(typeof a.getElementById!="undefined"&&!b)return(c=a.getElementById(c[1]))&&c.parentNode?[c]:[]},NAME:function(c,a){if(typeof a.getElementsByName!="undefined"){for(var b=[],e=a.getElementsByName(c[1]),d=0,f=e.length;d<f;d++)e[d].getAttribute("name")===
c[1]&&b.push(e[d]);return b.length===0?null:b}},TAG:function(c,a){if(typeof a.getElementsByTagName!="undefined")return a.getElementsByTagName(c[1])}},preFilter:{CLASS:function(c,a,b,e,d,f){c=" "+c[1].replace(j,"")+" ";if(f)return c;for(var f=0,g;(g=a[f])!=null;f++)g&&(d^(g.className&&(" "+g.className+" ").replace(/[\t\n\r]/g," ").indexOf(c)>=0)?b||e.push(g):b&&(a[f]=!1));return!1},ID:function(c){return c[1].replace(j,"")},TAG:function(c){return c[1].replace(j,"").toLowerCase()},CHILD:function(c){if(c[1]===
"nth"){c[2]||l.error(c[0]);c[2]=c[2].replace(/^\+|\s*/g,"");var a=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(c[2]==="even"&&"2n"||c[2]==="odd"&&"2n+1"||!/\D/.test(c[2])&&"0n+"+c[2]||c[2]);c[2]=a[1]+(a[2]||1)-0;c[3]=a[3]-0}else c[2]&&l.error(c[0]);c[0]=f++;return c},ATTR:function(c,a,b,e,d,f){a=c[1]=c[1].replace(j,"");!f&&k.attrMap[a]&&(c[1]=k.attrMap[a]);c[4]=(c[4]||c[5]||"").replace(j,"");c[2]==="~="&&(c[4]=" "+c[4]+" ");return c},PSEUDO:function(c,a,e,d,f){if(c[1]==="not")if((b.exec(c[3])||"").length>1||
/^\w/.test(c[3]))c[3]=l(c[3],null,null,a);else return c=l.filter(c[3],a,e,1^f),e||d.push.apply(d,c),!1;else if(k.match.POS.test(c[0])||k.match.CHILD.test(c[0]))return!0;return c},POS:function(c){c.unshift(!0);return c}},filters:{enabled:function(c){return c.disabled===!1&&c.type!=="hidden"},disabled:function(c){return c.disabled===!0},checked:function(c){return c.checked===!0},selected:function(c){return c.selected===!0},parent:function(c){return!!c.firstChild},empty:function(c){return!c.firstChild},
has:function(c,a,b){return!!l(b[3],c).length},header:function(c){return/h\d/i.test(c.nodeName)},text:function(c){var a=c.getAttribute("type"),b=c.type;return c.nodeName.toLowerCase()==="input"&&"text"===b&&(a===b||a===null)},radio:function(c){return c.nodeName.toLowerCase()==="input"&&"radio"===c.type},checkbox:function(c){return c.nodeName.toLowerCase()==="input"&&"checkbox"===c.type},file:function(c){return c.nodeName.toLowerCase()==="input"&&"file"===c.type},password:function(c){return c.nodeName.toLowerCase()===
"input"&&"password"===c.type},submit:function(c){var a=c.nodeName.toLowerCase();return(a==="input"||a==="button")&&"submit"===c.type},image:function(c){return c.nodeName.toLowerCase()==="input"&&"image"===c.type},reset:function(c){var a=c.nodeName.toLowerCase();return(a==="input"||a==="button")&&"reset"===c.type},button:function(c){var a=c.nodeName.toLowerCase();return a==="input"&&"button"===c.type||a==="button"},input:function(c){return/input|select|textarea|button/i.test(c.nodeName)},focus:function(c){return c===
c.ownerDocument.activeElement}},setFilters:{first:function(c,a){return a===0},last:function(c,a,b,e){return a===e.length-1},even:function(c,a){return a%2===0},odd:function(c,a){return a%2===1},lt:function(c,a,b){return a<b[3]-0},gt:function(c,a,b){return a>b[3]-0},nth:function(c,a,b){return b[3]-0===a},eq:function(c,a,b){return b[3]-0===a}},filter:{PSEUDO:function(c,a,b,e){var d=a[1],f=k.filters[d];if(f)return f(c,b,a,e);if(d==="contains")return(c.textContent||c.innerText||l.getText([c])||"").indexOf(a[3])>=
0;if(d==="not"){a=a[3];b=0;for(e=a.length;b<e;b++)if(a[b]===c)return!1;return!0}l.error(d)},CHILD:function(c,a){var b=a[1],e=c;switch(b){case "only":case "first":for(;e=e.previousSibling;)if(e.nodeType===1)return!1;if(b==="first")return!0;e=c;case "last":for(;e=e.nextSibling;)if(e.nodeType===1)return!1;return!0;case "nth":var b=a[2],d=a[3];if(b===1&&d===0)return!0;var f=a[0],g=c.parentNode;if(g&&(g.sizcache!==f||!c.nodeIndex)){for(var h=0,e=g.firstChild;e;e=e.nextSibling)e.nodeType===1&&(e.nodeIndex=
++h);g.sizcache=f}e=c.nodeIndex-d;return b===0?e===0:e%b===0&&e/b>=0}},ID:function(c,a){return c.nodeType===1&&c.getAttribute("id")===a},TAG:function(c,a){return a==="*"&&c.nodeType===1||c.nodeName.toLowerCase()===a},CLASS:function(c,a){return(" "+(c.className||c.getAttribute("class"))+" ").indexOf(a)>-1},ATTR:function(c,a){var b=a[1],b=k.attrHandle[b]?k.attrHandle[b](c):c[b]!=null?c[b]:c.getAttribute(b),e=b+"",d=a[2],f=a[4];return b==null?d==="!=":d==="="?e===f:d==="*="?e.indexOf(f)>=0:d==="~="?
(" "+e+" ").indexOf(f)>=0:f?d==="!="?e!==f:d==="^="?e.indexOf(f)===0:d==="$="?e.substr(e.length-f.length)===f:d==="|="?e===f||e.substr(0,f.length+1)===f+"-":!1:e&&b!==!1},POS:function(c,a,b,e){var d=k.setFilters[a[2]];if(d)return d(c,b,a,e)}}},w=k.match.POS,p=function(c,a){return"\\"+(a-0+1)},m;for(m in k.match)k.match[m]=RegExp(k.match[m].source+/(?![^\[]*\])(?![^\(]*\))/.source),k.leftMatch[m]=RegExp(/(^(?:.|\r|\n)*?)/.source+k.match[m].source.replace(/\\(\d+)/g,p));var s=function(c,a){c=Array.prototype.slice.call(c,
0);return a?(a.push.apply(a,c),a):c};try{Array.prototype.slice.call(n.documentElement.childNodes,0)}catch(Q){s=function(c,a){var b=0,e=a||[];if(g.call(c)==="[object Array]")Array.prototype.push.apply(e,c);else if(typeof c.length=="number")for(var d=c.length;b<d;b++)e.push(c[b]);else for(;c[b];b++)e.push(c[b]);return e}}var r,y;n.documentElement.compareDocumentPosition?r=function(c,a){return c===a?(h=!0,0):!c.compareDocumentPosition||!a.compareDocumentPosition?c.compareDocumentPosition?-1:1:c.compareDocumentPosition(a)&
4?-1:1}:(r=function(c,a){if(c===a)return h=!0,0;if(c.sourceIndex&&a.sourceIndex)return c.sourceIndex-a.sourceIndex;var b,e,d=[],f=[];b=c.parentNode;e=a.parentNode;var g=b;if(b===e)return y(c,a);if(!b)return-1;if(!e)return 1;for(;g;)d.unshift(g),g=g.parentNode;for(g=e;g;)f.unshift(g),g=g.parentNode;b=d.length;e=f.length;for(g=0;g<b&&g<e;g++)if(d[g]!==f[g])return y(d[g],f[g]);return g===b?y(c,f[g],-1):y(d[g],a,1)},y=function(c,a,b){if(c===a)return b;for(c=c.nextSibling;c;){if(c===a)return-1;c=c.nextSibling}return 1});
l.getText=function(c){for(var a="",b,e=0;c[e];e++)b=c[e],b.nodeType===3||b.nodeType===4?a+=b.nodeValue:b.nodeType!==8&&(a+=l.getText(b.childNodes));return a};(function(){var c=n.createElement("div"),a="script"+(new Date).getTime(),b=n.documentElement;c.innerHTML="<a name='"+a+"'/>";b.insertBefore(c,b.firstChild);n.getElementById(a)&&(k.find.ID=function(c,a,b){if(typeof a.getElementById!="undefined"&&!b)return(a=a.getElementById(c[1]))?a.id===c[1]||typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id").nodeValue===
c[1]?[a]:d:[]},k.filter.ID=function(c,a){var b=typeof c.getAttributeNode!="undefined"&&c.getAttributeNode("id");return c.nodeType===1&&b&&b.nodeValue===a});b.removeChild(c);b=c=null})();(function(){var c=n.createElement("div");c.appendChild(n.createComment(""));c.getElementsByTagName("*").length>0&&(k.find.TAG=function(c,a){var b=a.getElementsByTagName(c[1]);if(c[1]==="*"){for(var e=[],d=0;b[d];d++)b[d].nodeType===1&&e.push(b[d]);b=e}return b});c.innerHTML="<a href='#'></a>";c.firstChild&&typeof c.firstChild.getAttribute!=
"undefined"&&c.firstChild.getAttribute("href")!=="#"&&(k.attrHandle.href=function(c){return c.getAttribute("href",2)});c=null})();n.querySelectorAll&&function(){var c=l,a=n.createElement("div");a.innerHTML="<p class='TEST'></p>";if(!a.querySelectorAll||a.querySelectorAll(".TEST").length!==0){l=function(a,b,e,d){b=b||n;if(!d&&!l.isXML(b)){var f=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(a);if(f&&(b.nodeType===1||b.nodeType===9)){if(f[1])return s(b.getElementsByTagName(a),e);if(f[2]&&k.find.CLASS&&b.getElementsByClassName)return s(b.getElementsByClassName(f[2]),
e)}if(b.nodeType===9){if(a==="body"&&b.body)return s([b.body],e);if(f&&f[3]){var g=b.getElementById(f[3]);if(!g||!g.parentNode)return s([],e);if(g.id===f[3])return s([g],e)}try{return s(b.querySelectorAll(a),e)}catch(h){}}else if(b.nodeType===1&&b.nodeName.toLowerCase()!=="object"){var f=b,o=(g=b.getAttribute("id"))||"__sizzle__",i=b.parentNode,G=/^\s*[+~]/.test(a);g?o=o.replace(/'/g,"\\$&"):b.setAttribute("id",o);G&&i&&(b=b.parentNode);try{if(!G||i)return s(b.querySelectorAll("[id='"+o+"'] "+a),
e)}catch(j){}finally{g||f.removeAttribute("id")}}}return c(a,b,e,d)};for(var b in c)l[b]=c[b];a=null}}();(function(){var c=n.documentElement,a=c.matchesSelector||c.mozMatchesSelector||c.webkitMatchesSelector||c.msMatchesSelector;if(a){var b=!a.call(n.createElement("div"),"div"),e=!1;try{a.call(n.documentElement,"[test!='']:sizzle")}catch(d){e=!0}l.matchesSelector=function(c,d){d=d.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!l.isXML(c))try{if(e||!k.match.PSEUDO.test(d)&&!/!=/.test(d)){var f=a.call(c,
d);if(f||!b||c.document&&c.document.nodeType!==11)return f}}catch(g){}return l(d,null,null,[c]).length>0}}})();(function(){var c=n.createElement("div");c.innerHTML="<div class='test e'></div><div class='test'></div>";if(c.getElementsByClassName&&c.getElementsByClassName("e").length!==0&&(c.lastChild.className="e",c.getElementsByClassName("e").length!==1))k.order.splice(1,0,"CLASS"),k.find.CLASS=function(c,a,b){if(typeof a.getElementsByClassName!="undefined"&&!b)return a.getElementsByClassName(c[1])},
c=null})();n.documentElement.contains?l.contains=function(c,a){return c!==a&&(c.contains?c.contains(a):!0)}:n.documentElement.compareDocumentPosition?l.contains=function(c,a){return!!(c.compareDocumentPosition(a)&16)}:l.contains=function(){return!1};l.isXML=function(c){return(c=(c?c.ownerDocument||c:0).documentElement)?c.nodeName!=="HTML":!1};var X=function(c,a){for(var b,e=[],d="",f=a.nodeType?[a]:a;b=k.match.PSEUDO.exec(c);)d+=b[0],c=c.replace(k.match.PSEUDO,"");c=k.relative[c]?c+"*":c;b=0;for(var g=
f.length;b<g;b++)l(c,f[b],e);return l.filter(d,e)};e.find=l;e.expr=l.selectors;e.expr[":"]=e.expr.filters;e.unique=l.uniqueSort;e.text=l.getText;e.isXMLDoc=l.isXML;e.contains=l.contains})();var cb=/Until$/,db=/^(?:parents|prevUntil|prevAll)/,eb=/,/,$a=/^.[^:#\[\.,]*$/,fb=Array.prototype.slice,Ia=e.expr.match.POS,Ca={children:!0,contents:!0,next:!0,prev:!0};e.fn.extend({find:function(c){var a=this,b,d;if(typeof c!="string")return e(c).filter(function(){for(b=0,d=a.length;b<d;b++)if(e.contains(a[b],
this))return!0});var f=this.pushStack("","find",c),g,h,i;for(b=0,d=this.length;b<d;b++)if(g=f.length,e.find(c,this[b],f),b>0)for(h=g;h<f.length;h++)for(i=0;i<g;i++)if(f[i]===f[h]){f.splice(h--,1);break}return f},has:function(c){var a=e(c);return this.filter(function(){for(var c=0,b=a.length;c<b;c++)if(e.contains(this,a[c]))return!0})},not:function(c){return this.pushStack(Z(this,c,!1),"not",c)},filter:function(c){return this.pushStack(Z(this,c,!0),"filter",c)},is:function(c){return!!c&&(typeof c==
"string"?e.filter(c,this).length>0:this.filter(c).length>0)},closest:function(c,a){var b=[],d,f,g=this[0];if(e.isArray(c)){var h,i,j={},l=1;if(g&&c.length){for(d=0,f=c.length;d<f;d++)i=c[d],j[i]||(j[i]=Ia.test(i)?e(i,a||this.context):i);for(;g&&g.ownerDocument&&g!==a;){for(i in j)h=j[i],(h.jquery?h.index(g)>-1:e(g).is(h))&&b.push({selector:i,elem:g,level:l});g=g.parentNode;l++}}return b}h=Ia.test(c)||typeof c!="string"?e(c,a||this.context):0;for(d=0,f=this.length;d<f;d++)for(g=this[d];g;){if(h?h.index(g)>
-1:e.find.matchesSelector(g,c)){b.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===a||g.nodeType===11)break}b=b.length>1?e.unique(b):b;return this.pushStack(b,"closest",c)},index:function(c){return!c||typeof c=="string"?e.inArray(this[0],c?e(c):this.parent().children()):e.inArray(c.jquery?c[0]:c,this)},add:function(c,a){var b=typeof c=="string"?e(c,a):e.makeArray(c&&c.nodeType?[c]:c),d=e.merge(this.get(),b);return this.pushStack(!b[0]||!b[0].parentNode||b[0].parentNode.nodeType===11||!d[0]||
!d[0].parentNode||d[0].parentNode.nodeType===11?d:e.unique(d))},andSelf:function(){return this.add(this.prevObject)}});e.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return e.dir(c,"parentNode")},parentsUntil:function(c,a,b){return e.dir(c,"parentNode",b)},next:function(c){return e.nth(c,2,"nextSibling")},prev:function(c){return e.nth(c,2,"previousSibling")},nextAll:function(c){return e.dir(c,"nextSibling")},prevAll:function(c){return e.dir(c,"previousSibling")},
nextUntil:function(c,a,b){return e.dir(c,"nextSibling",b)},prevUntil:function(c,a,b){return e.dir(c,"previousSibling",b)},siblings:function(c){return e.sibling(c.parentNode.firstChild,c)},children:function(c){return e.sibling(c.firstChild)},contents:function(c){return e.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:e.makeArray(c.childNodes)}},function(c,a){e.fn[c]=function(b,d){var f=e.map(this,a,b),g=fb.call(arguments);cb.test(c)||(d=b);d&&typeof d=="string"&&(f=e.filter(d,f));
f=this.length>1&&!Ca[c]?e.unique(f):f;(this.length>1||eb.test(d))&&db.test(c)&&(f=f.reverse());return this.pushStack(f,c,g.join(","))}});e.extend({filter:function(c,a,b){b&&(c=":not("+c+")");return a.length===1?e.find.matchesSelector(a[0],c)?[a[0]]:[]:e.find.matches(c,a)},dir:function(c,a,b){for(var f=[],c=c[a];c&&c.nodeType!==9&&(b===d||c.nodeType!==1||!e(c).is(b));)c.nodeType===1&&f.push(c),c=c[a];return f},nth:function(c,a,b){for(var a=a||1,e=0;c;c=c[b])if(c.nodeType===1&&++e===a)break;return c},
sibling:function(c,a){for(var b=[];c;c=c.nextSibling)c.nodeType===1&&c!==a&&b.push(c);return b}});var gb=/ jQuery\d+="(?:\d+|null)"/g,aa=/^\s+/,z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ja=/<([\w:]+)/,hb=/<tbody/i,ib=/<|&#?\w+;/,Ka=/<(?:script|object|embed|option|style)/i,La=/checked\s*(?:[^=]|=\s*.checked.)/i,jb=/\/(java|ecma)script/i,Za=/^\s*<!(?:\[CDATA\[|\-\-)/,$={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,
"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};$.optgroup=$.option;$.tbody=$.tfoot=$.colgroup=$.caption=$.thead;$.th=$.td;e.support.htmlSerialize||($._default=[1,"div<div>","</div>"]);e.fn.extend({text:function(c){return e.isFunction(c)?this.each(function(a){var b=e(this);b.text(c.call(this,a,b.text()))}):typeof c!="object"&&
c!==d?this.empty().append((this[0]&&this[0].ownerDocument||n).createTextNode(c)):e.text(this)},wrapAll:function(c){if(e.isFunction(c))return this.each(function(a){e(this).wrapAll(c.call(this,a))});if(this[0]){var a=e(c,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&a.insertBefore(this[0]);a.map(function(){for(var c=this;c.firstChild&&c.firstChild.nodeType===1;)c=c.firstChild;return c}).append(this)}return this},wrapInner:function(c){return e.isFunction(c)?this.each(function(a){e(this).wrapInner(c.call(this,
a))}):this.each(function(){var a=e(this),b=a.contents();b.length?b.wrapAll(c):a.append(c)})},wrap:function(c){return this.each(function(){e(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){e.nodeName(this,"body")||e(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(c){this.nodeType===1&&this.appendChild(c)})},prepend:function(){return this.domManip(arguments,!0,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)})},
before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(c){this.parentNode.insertBefore(c,this)});if(arguments.length){var c=e(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(c){this.parentNode.insertBefore(c,this.nextSibling)});if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,e(arguments[0]).toArray());
return c}},remove:function(c,a){for(var b=0,d;(d=this[b])!=null;b++)if(!c||e.filter(c,[d]).length)!a&&d.nodeType===1&&(e.cleanData(d.getElementsByTagName("*")),e.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var c=0,a;(a=this[c])!=null;c++)for(a.nodeType===1&&e.cleanData(a.getElementsByTagName("*"));a.firstChild;)a.removeChild(a.firstChild);return this},clone:function(c,a){c=c==null?!1:c;a=a==null?c:a;return this.map(function(){return e.clone(this,c,a)})},
html:function(c){if(c===d)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(gb,""):null;if(typeof c=="string"&&!Ka.test(c)&&(e.support.leadingWhitespace||!aa.test(c))&&!$[(Ja.exec(c)||["",""])[1].toLowerCase()]){c=c.replace(z,"<$1></$2>");try{for(var a=0,b=this.length;a<b;a++)this[a].nodeType===1&&(e.cleanData(this[a].getElementsByTagName("*")),this[a].innerHTML=c)}catch(f){this.empty().append(c)}}else e.isFunction(c)?this.each(function(a){var b=e(this);b.html(c.call(this,a,b.html()))}):
this.empty().append(c);return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(e.isFunction(c))return this.each(function(a){var b=e(this),d=b.html();b.replaceWith(c.call(this,a,d))});typeof c!="string"&&(c=e(c).detach());return this.each(function(){var a=this.nextSibling,b=this.parentNode;e(this).remove();a?e(a).before(c):e(b).append(c)})}return this.length?this.pushStack(e(e.isFunction(c)?c():c),"replaceWith",c):this},detach:function(c){return this.remove(c,!0)},domManip:function(c,
a,b){var f,g,h,i,j=c[0],l=[];if(!e.support.checkClone&&arguments.length===3&&typeof j=="string"&&La.test(j))return this.each(function(){e(this).domManip(c,a,b,!0)});if(e.isFunction(j))return this.each(function(f){var g=e(this);c[0]=j.call(this,f,a?g.html():d);g.domManip(c,a,b)});if(this[0]){i=j&&j.parentNode;e.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?f={fragment:i}:f=e.buildFragment(c,this,l);h=f.fragment;h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){a=
a&&e.nodeName(g,"tr");g=0;i=this.length;for(var q=i-1;g<i;g++)b.call(a?e.nodeName(this[g],"table")?this[g].getElementsByTagName("tbody")[0]||this[g].appendChild(this[g].ownerDocument.createElement("tbody")):this[g]:this[g],f.cacheable||i>1&&g<q?e.clone(h,!0,!0):h)}l.length&&e.each(l,u)}return this}});e.buildFragment=function(c,a,b){var d,f,g,h;a&&a[0]&&(h=a[0].ownerDocument||a[0]);h.createDocumentFragment||(h=n);c.length===1&&typeof c[0]=="string"&&c[0].length<512&&h===n&&c[0].charAt(0)==="<"&&!Ka.test(c[0])&&
(e.support.checkClone||!La.test(c[0]))&&(f=!0,g=e.fragments[c[0]],g&&g!==1&&(d=g));d||(d=h.createDocumentFragment(),e.clean(c,h,d,b));f&&(e.fragments[c[0]]=g?d:1);return{fragment:d,cacheable:f}};e.fragments={};e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,a){e.fn[c]=function(b){var d=[],b=e(b),f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&b.length===1)return b[a](this[0]),this;for(var f=
0,g=b.length;f<g;f++){var h=(f>0?this.clone(!0):this).get();e(b[f])[a](h);d=d.concat(h)}return this.pushStack(d,c,b.selector)}});e.extend({clone:function(c,a,b){var d=c.cloneNode(!0),f,g,h;if((!e.support.noCloneEvent||!e.support.noCloneChecked)&&(c.nodeType===1||c.nodeType===11)&&!e.isXMLDoc(c)){C(c,d);f=D(c);g=D(d);for(h=0;f[h];++h)C(f[h],g[h])}if(a&&(M(c,d),b)){f=D(c);g=D(d);for(h=0;f[h];++h)M(f[h],g[h])}return d},clean:function(c,a,b,d){a=a||n;typeof a.createElement=="undefined"&&(a=a.ownerDocument||
a[0]&&a[0].ownerDocument||n);for(var f=[],g,h=0,i;(i=c[h])!=null;h++)if(typeof i=="number"&&(i+=""),i){if(typeof i=="string")if(ib.test(i)){i=i.replace(z,"<$1></$2>");g=(Ja.exec(i)||["",""])[1].toLowerCase();var j=$[g]||$._default,l=j[0],q=a.createElement("div");for(q.innerHTML=j[1]+i+j[2];l--;)q=q.lastChild;if(!e.support.tbody){l=hb.test(i);j=g==="table"&&!l?q.firstChild&&q.firstChild.childNodes:j[1]==="<table>"&&!l?q.childNodes:[];for(g=j.length-1;g>=0;--g)e.nodeName(j[g],"tbody")&&!j[g].childNodes.length&&
j[g].parentNode.removeChild(j[g])}!e.support.leadingWhitespace&&aa.test(i)&&q.insertBefore(a.createTextNode(aa.exec(i)[0]),q.firstChild);i=q.childNodes}else i=a.createTextNode(i);var k;if(!e.support.appendChecked)if(i[0]&&typeof(k=i.length)=="number")for(g=0;g<k;g++)p(i[g]);else p(i);i.nodeType?f.push(i):f=e.merge(f,i)}if(b){c=function(c){return!c.type||jb.test(c.type)};for(h=0;f[h];h++)d&&e.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript")?d.push(f[h].parentNode?
f[h].parentNode.removeChild(f[h]):f[h]):(f[h].nodeType===1&&(a=e.grep(f[h].getElementsByTagName("script"),c),f.splice.apply(f,[h+1,0].concat(a))),b.appendChild(f[h]))}return f},cleanData:function(c){for(var a,b,d=e.cache,f=e.expando,g=e.event.special,h=e.support.deleteExpando,i=0,j;(j=c[i])!=null;i++)if(!j.nodeName||!e.noData[j.nodeName.toLowerCase()])if(b=j[e.expando]){if((a=d[b]&&d[b][f])&&a.events){for(var l in a.events)g[l]?e.event.remove(j,l):e.removeEvent(j,l,a.handle);a.handle&&(a.handle.elem=
null)}h?delete j[e.expando]:j.removeAttribute&&j.removeAttribute(e.expando);delete d[b]}}});var Ma=/alpha\([^)]*\)/i,kb=/opacity=([^)]*)/,lb=/([A-Z]|^ms)/g,Na=/^-?\d+(?:px)?$/i,mb=/^-?\d/,nb=/^[+\-]=/,ob=/[^+\-\.\de]+/g,pb={position:"absolute",visibility:"hidden",display:"block"},Xa=["Left","Right"],Ya=["Top","Bottom"],ka,Oa,Pa;e.fn.css=function(c,a){return arguments.length===2&&a===d?this:e.access(this,c,a,!0,function(c,a,b){return b!==d?e.style(c,a,b):e.css(c,a)})};e.extend({cssHooks:{opacity:{get:function(c,
a){if(a){var b=ka(c,"opacity","opacity");return b===""?"1":b}return c.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":e.support.cssFloat?"cssFloat":"styleFloat"},style:function(c,a,b,f){if(c&&c.nodeType!==3&&c.nodeType!==8&&c.style){var g,h=e.camelCase(a),i=c.style,j=e.cssHooks[h],a=e.cssProps[h]||h;if(b===d)return j&&"get"in j&&(g=j.get(c,!1,f))!==d?g:i[a];f=typeof b;if(!(f==="number"&&isNaN(b)||b==null))if(f===
"string"&&nb.test(b)&&(b=+b.replace(ob,"")+parseFloat(e.css(c,a)),f="number"),f==="number"&&!e.cssNumber[h]&&(b+="px"),!j||!("set"in j)||(b=j.set(c,b))!==d)try{i[a]=b}catch(l){}}},css:function(c,a,b){var f,g;a=e.camelCase(a);g=e.cssHooks[a];a=e.cssProps[a]||a;a==="cssFloat"&&(a="float");if(g&&"get"in g&&(f=g.get(c,!0,b))!==d)return f;if(ka)return ka(c,a)},swap:function(c,a,b){var e={},f;for(f in a)e[f]=c.style[f],c.style[f]=a[f];b.call(c);for(f in a)c.style[f]=e[f]}});e.curCSS=e.css;e.each(["height",
"width"],function(c,a){e.cssHooks[a]={get:function(c,b,f){var d;if(b){if(c.offsetWidth!==0)return v(c,a,f);e.swap(c,pb,function(){d=v(c,a,f)});return d}},set:function(c,a){if(!Na.test(a))return a;a=parseFloat(a);if(a>=0)return a+"px"}}});e.support.opacity||(e.cssHooks.opacity={get:function(c,a){return kb.test((a&&c.currentStyle?c.currentStyle.filter:c.style.filter)||"")?parseFloat(RegExp.$1)/100+"":a?"1":""},set:function(c,a){var b=c.style,f=c.currentStyle;b.zoom=1;var d=e.isNaN(a)?"":"alpha(opacity="+
a*100+")",f=f&&f.filter||b.filter||"";b.filter=Ma.test(f)?f.replace(Ma,d):f+" "+d}});e(function(){e.support.reliableMarginRight||(e.cssHooks.marginRight={get:function(c,a){var b;e.swap(c,{display:"inline-block"},function(){a?b=ka(c,"margin-right","marginRight"):b=c.style.marginRight});return b}})});n.defaultView&&n.defaultView.getComputedStyle&&(Oa=function(c,a){var b,f,a=a.replace(lb,"-$1").toLowerCase();if(!(f=c.ownerDocument.defaultView))return d;if(f=f.getComputedStyle(c,null))b=f.getPropertyValue(a),
b===""&&!e.contains(c.ownerDocument.documentElement,c)&&(b=e.style(c,a));return b});n.documentElement.currentStyle&&(Pa=function(c,a){var b,e=c.currentStyle&&c.currentStyle[a],f=c.runtimeStyle&&c.runtimeStyle[a],d=c.style;!Na.test(e)&&mb.test(e)&&(b=d.left,f&&(c.runtimeStyle.left=c.currentStyle.left),d.left=a==="fontSize"?"1em":e||0,e=d.pixelLeft+"px",d.left=b,f&&(c.runtimeStyle.left=f));return e===""?"auto":e});ka=Oa||Pa;e.expr&&e.expr.filters&&(e.expr.filters.hidden=function(c){var a=c.offsetHeight;
return c.offsetWidth===0&&a===0||!e.support.reliableHiddenOffsets&&(c.style.display||e.css(c,"display"))==="none"},e.expr.filters.visible=function(c){return!e.expr.filters.hidden(c)});var qb=/%20/g,Wa=/\[\]$/,Qa=/\r?\n/g,rb=/#.*$/,sb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,tb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ub=/^(?:GET|HEAD)$/,vb=/^\/\//,Ra=/\?/,wb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,xb=/^(?:select|textarea)/i,Ga=/\s+/,
yb=/([?&])_=[^&]*/,Sa=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Ta=e.fn.load,Ba={},Ua={},ha,ia;try{ha=l.href}catch(Eb){ha=n.createElement("a"),ha.href="",ha=ha.href}ia=Sa.exec(ha.toLowerCase())||[];e.fn.extend({load:function(c,a,b){if(typeof c!="string"&&Ta)return Ta.apply(this,arguments);if(!this.length)return this;var f=c.indexOf(" ");if(f>=0)var g=c.slice(f,c.length),c=c.slice(0,f);f="GET";a&&(e.isFunction(a)?(b=a,a=d):typeof a=="object"&&(a=e.param(a,e.ajaxSettings.traditional),f="POST"));
var h=this;e.ajax({url:c,type:f,dataType:"html",data:a,complete:function(c,a,f){f=c.responseText;c.isResolved()&&(c.done(function(c){f=c}),h.html(g?e("<div>").append(f.replace(wb,"")).find(g):f));b&&h.each(b,[f,a,c])}});return this},serialize:function(){return e.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?e.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||xb.test(this.nodeName)||tb.test(this.type))}).map(function(c,
a){var b=e(this).val();return b==null?null:e.isArray(b)?e.map(b,function(c){return{name:a.name,value:c.replace(Qa,"\r\n")}}):{name:a.name,value:b.replace(Qa,"\r\n")}}).get()}});e.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,a){e.fn[a]=function(c){return this.bind(a,c)}});e.each(["get","post"],function(c,a){e[a]=function(c,b,f,g){e.isFunction(b)&&(g=g||f,f=b,b=d);return e.ajax({type:a,url:c,data:b,success:f,dataType:g})}});e.extend({getScript:function(c,
a){return e.get(c,d,a,"script")},getJSON:function(c,a,b){return e.get(c,a,b,"json")},ajaxSetup:function(c,a){a?e.extend(!0,c,e.ajaxSettings,a):(a=c,c=e.extend(!0,e.ajaxSettings,a));for(var b in{context:1,url:1})b in a?c[b]=a[b]:b in e.ajaxSettings&&(c[b]=e.ajaxSettings[b]);return c},ajaxSettings:{url:ha,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|widget):$/.test(ia[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",
html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":e.parseJSON,"text xml":e.parseXML}},ajaxPrefilter:r(Ba),ajaxTransport:r(Ua),ajax:function(c,a){function b(c,a,o,k){if(y!==2){y=2;Q&&clearTimeout(Q);s=d;p=k||"";x.readyState=c?4:0;var w,B,m;if(o){var k=f,r=x,P=k.contents,I=k.dataTypes,J=k.responseFields,n,u,
Y,t;for(u in J)u in o&&(r[J[u]]=o[u]);for(;I[0]==="*";)I.shift(),n===d&&(n=k.mimeType||r.getResponseHeader("content-type"));if(n)for(u in P)if(P[u]&&P[u].test(n)){I.unshift(u);break}if(I[0]in o)Y=I[0];else{for(u in o){if(!I[0]||k.converters[u+" "+I[0]]){Y=u;break}t||(t=u)}Y=Y||t}Y?(Y!==I[0]&&I.unshift(Y),o=o[Y]):o=void 0}else o=d;if(c>=200&&c<300||c===304){if(f.ifModified){if(n=x.getResponseHeader("Last-Modified"))e.lastModified[q]=n;if(n=x.getResponseHeader("Etag"))e.etag[q]=n}if(c===304)a="notmodified",
w=!0;else try{n=f;n.dataFilter&&(o=n.dataFilter(o,n.dataType));var na=n.dataTypes;u={};var E,U,z=na.length,v,R=na[0],T,ra,aa,F,L;for(E=1;E<z;E++){if(E===1)for(U in n.converters)typeof U=="string"&&(u[U.toLowerCase()]=n.converters[U]);T=R;R=na[E];if(R==="*")R=T;else if(T!=="*"&&T!==R){ra=T+" "+R;aa=u[ra]||u["* "+R];if(!aa)for(F in L=d,u)if(v=F.split(" "),v[0]===T||v[0]==="*")if(L=u[v[1]+" "+R]){F=u[F];F===!0?aa=L:L===!0&&(aa=F);break}!aa&&!L&&e.error("No conversion from "+ra.replace(" "," to "));aa!==
!0&&(o=aa?aa(o):L(F(o)))}}B=o;a="success";w=!0}catch(C){a="parsererror",m=C}}else if(m=a,!a||c)a="error",c<0&&(c=0);x.status=c;x.statusText=a;w?i.resolveWith(g,[B,a,x]):i.rejectWith(g,[x,a,m]);x.statusCode(l);l=d;X&&h.trigger("ajax"+(w?"Success":"Error"),[x,f,w?B:m]);j.resolveWith(g,[x,a]);X&&(h.trigger("ajaxComplete",[x,f]),--e.active||e.event.trigger("ajaxStop"))}}typeof c=="object"&&(a=c,c=d);a=a||{};var f=e.ajaxSetup({},a),g=f.context||f,h=g!==f&&(g.nodeType||g instanceof e)?e(g):e.event,i=e.Deferred(),
j=e._Deferred(),l=f.statusCode||{},q,k={},w={},p,m,s,Q,r,y=0,X,P,x={readyState:0,setRequestHeader:function(c,a){if(!y){var b=c.toLowerCase();c=w[b]=w[b]||c;k[c]=a}return this},getAllResponseHeaders:function(){return y===2?p:null},getResponseHeader:function(c){var a;if(y===2){if(!m)for(m={};a=sb.exec(p);)m[a[1].toLowerCase()]=a[2];a=m[c.toLowerCase()]}return a===d?null:a},overrideMimeType:function(c){y||(f.mimeType=c);return this},abort:function(c){c=c||"abort";s&&s.abort(c);b(0,c);return this}};i.promise(x);
x.success=x.done;x.error=x.fail;x.complete=j.done;x.statusCode=function(c){if(c){var a;if(y<2)for(a in c)l[a]=[l[a],c[a]];else a=c[x.status],x.then(a,a)}return this};f.url=((c||f.url)+"").replace(rb,"").replace(vb,ia[1]+"//");f.dataTypes=e.trim(f.dataType||"*").toLowerCase().split(Ga);f.crossDomain==null&&(r=Sa.exec(f.url.toLowerCase()),f.crossDomain=!(!r||r[1]==ia[1]&&r[2]==ia[2]&&(r[3]||(r[1]==="http:"?80:443))==(ia[3]||(ia[1]==="http:"?80:443))));f.data&&f.processData&&typeof f.data!="string"&&
(f.data=e.param(f.data,f.traditional));t(Ba,f,a,x);if(y===2)return!1;X=f.global;f.type=f.type.toUpperCase();f.hasContent=!ub.test(f.type);X&&e.active++===0&&e.event.trigger("ajaxStart");if(!f.hasContent&&(f.data&&(f.url+=(Ra.test(f.url)?"&":"?")+f.data),q=f.url,f.cache===!1)){r=e.now();var I=f.url.replace(yb,"$1_="+r);f.url=I+(I===f.url?(Ra.test(f.url)?"&":"?")+"_="+r:"")}(f.data&&f.hasContent&&f.contentType!==!1||a.contentType)&&x.setRequestHeader("Content-Type",f.contentType);f.ifModified&&(q=q||
f.url,e.lastModified[q]&&x.setRequestHeader("If-Modified-Since",e.lastModified[q]),e.etag[q]&&x.setRequestHeader("If-None-Match",e.etag[q]));x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+(f.dataTypes[0]!=="*"?", */*; q=0.01":""):f.accepts["*"]);for(P in f.headers)x.setRequestHeader(P,f.headers[P]);if(f.beforeSend&&(f.beforeSend.call(g,x,f)===!1||y===2))return x.abort(),!1;for(P in{success:1,error:1,complete:1})x[P](f[P]);if(s=t(Ua,f,a,x)){x.readyState=
1;X&&h.trigger("ajaxSend",[x,f]);f.async&&f.timeout>0&&(Q=setTimeout(function(){x.abort("timeout")},f.timeout));try{y=1,s.send(k,b)}catch(J){status<2?b(-1,J):e.error(J)}}else b(-1,"No Transport");return x},param:function(c,a){var b=[],f=function(c,a){a=e.isFunction(a)?a():a;b[b.length]=encodeURIComponent(c)+"="+encodeURIComponent(a)};a===d&&(a=e.ajaxSettings.traditional);if(e.isArray(c)||c.jquery&&!e.isPlainObject(c))e.each(c,function(){f(this.name,this.value)});else for(var g in c)m(g,c[g],a,f);
return b.join("&").replace(qb,"+")}});e.extend({active:0,lastModified:{},etag:{}});var zb=e.now(),za=/(\=)\?(&|$)|\?\?/i;e.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return e.expando+"_"+zb++}});e.ajaxPrefilter("json jsonp",function(c,b,f){b=c.contentType==="application/x-www-form-urlencoded"&&typeof c.data=="string";if(c.dataTypes[0]==="jsonp"||c.jsonp!==!1&&(za.test(c.url)||b&&za.test(c.data))){var d,g=c.jsonpCallback=e.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,h=a[g],
i=c.url,j=c.data,l="$1"+g+"$2";c.jsonp!==!1&&(i=i.replace(za,l),c.url===i&&(b&&(j=j.replace(za,l)),c.data===j&&(i+=(/\?/.test(i)?"&":"?")+c.jsonp+"="+g)));c.url=i;c.data=j;a[g]=function(c){d=[c]};f.always(function(){a[g]=h;d&&e.isFunction(h)&&a[g](d[0])});c.converters["script json"]=function(){d||e.error(g+" was not called");return d[0]};c.dataTypes[0]="json";return"script"}});e.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
contents:{script:/javascript|ecmascript/},converters:{"text script":function(c){e.globalEval(c);return c}}});e.ajaxPrefilter("script",function(c){c.cache===d&&(c.cache=!1);c.crossDomain&&(c.type="GET",c.global=!1)});e.ajaxTransport("script",function(c){if(c.crossDomain){var a,b=n.head||n.getElementsByTagName("head")[0]||n.documentElement;return{send:function(e,f){a=n.createElement("script");a.async="async";c.scriptCharset&&(a.charset=c.scriptCharset);a.src=c.url;a.onload=a.onreadystatechange=function(c,
e){if(e||!a.readyState||/loaded|complete/.test(a.readyState))a.onload=a.onreadystatechange=null,b&&a.parentNode&&b.removeChild(a),a=d,e||f(200,"success")};b.insertBefore(a,b.firstChild)},abort:function(){a&&a.onload(0,1)}}}});var Da=a.ActiveXObject?function(){for(var c in oa)oa[c](0,1)}:!1,Ab=0,oa;e.ajaxSettings.xhr=a.ActiveXObject?function(){var c;if(!(c=!this.isLocal&&j()))a:{try{c=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}c=void 0}return c}:j;(function(c){e.extend(e.support,{ajax:!!c,
cors:!!c&&"withCredentials"in c})})(e.ajaxSettings.xhr());e.support.ajax&&e.ajaxTransport(function(c){if(!c.crossDomain||e.support.cors){var b;return{send:function(f,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType);!c.crossDomain&&!f["X-Requested-With"]&&(f["X-Requested-With"]="XMLHttpRequest");try{for(j in f)h.setRequestHeader(j,
f[j])}catch(l){}h.send(c.hasContent&&c.data||null);b=function(a,f){var j,l,q,k,w;try{if(b&&(f||h.readyState===4))if(b=d,i&&(h.onreadystatechange=e.noop,Da&&delete oa[i]),f)h.readyState!==4&&h.abort();else{j=h.status;q=h.getAllResponseHeaders();k={};w=h.responseXML;w&&w.documentElement&&(k.xml=w);k.text=h.responseText;try{l=h.statusText}catch(m){l=""}!j&&c.isLocal&&!c.crossDomain?j=k.text?200:404:j===1223&&(j=204)}}catch(p){f||g(-1,p)}k&&g(j,l,k,q)};!c.async||h.readyState===4?b():(i=++Ab,Da&&(oa||
(oa={},e(a).unload(Da)),oa[i]=b),h.onreadystatechange=b)},abort:function(){b&&b(0,1)}}}});var Aa={},ca,ja,Bb=/^(?:toggle|show|hide)$/,Cb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,pa,Fa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],va,Ea=a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame;e.fn.extend({show:function(c,a,f){var d,g;if(c||c===0)return this.animate(h("show",3),
c,a,f);c=0;for(a=this.length;c<a;c++)d=this[c],d.style&&(g=d.style.display,!e._data(d,"olddisplay")&&g==="none"&&(g=d.style.display=""),g===""&&e.css(d,"display")==="none"&&e._data(d,"olddisplay",b(d.nodeName)));for(c=0;c<a;c++)if(d=this[c],d.style&&(g=d.style.display,g===""||g==="none"))d.style.display=e._data(d,"olddisplay")||"";return this},hide:function(c,a,b){if(c||c===0)return this.animate(h("hide",3),c,a,b);c=0;for(a=this.length;c<a;c++)this[c].style&&(b=e.css(this[c],"display"),b!=="none"&&
!e._data(this[c],"olddisplay")&&e._data(this[c],"olddisplay",b));for(c=0;c<a;c++)this[c].style&&(this[c].style.display="none");return this},_toggle:e.fn.toggle,toggle:function(c,a,b){var f=typeof c=="boolean";e.isFunction(c)&&e.isFunction(a)?this._toggle.apply(this,arguments):c==null||f?this.each(function(){var a=f?c:e(this).is(":hidden");e(this)[a?"show":"hide"]()}):this.animate(h("toggle",3),c,a,b);return this},fadeTo:function(c,a,b,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:a},
c,b,e)},animate:function(c,a,f,d){var g=e.speed(a,f,d);if(e.isEmptyObject(c))return this.each(g.complete,[!1]);c=e.extend({},c);return this[g.queue===!1?"each":"queue"](function(){var B;g.queue===!1&&e._mark(this);var a=e.extend({},g),f=this.nodeType===1,d=f&&e(this).is(":hidden"),h,i,j,l,q,o,k,w,m;a.animatedProperties={};for(j in c){h=e.camelCase(j);j!==h&&(c[h]=c[j],delete c[j]);i=c[h];e.isArray(i)?(a.animatedProperties[h]=i[1],B=c[h]=i[0],i=B):a.animatedProperties[h]=a.specialEasing&&a.specialEasing[h]||
a.easing||"swing";if(i==="hide"&&d||i==="show"&&!d)return a.complete.call(this);f&&(h==="height"||h==="width")&&(a.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],e.css(this,"display")==="inline"&&e.css(this,"float")==="none"&&(e.support.inlineBlockNeedsLayout?(l=b(this.nodeName),l==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}a.overflow!=null&&(this.style.overflow="hidden");for(j in c)q=new e.fx(this,
a,j),i=c[j],Bb.test(i)?q[i==="toggle"?d?"show":"hide":i]():(o=Cb.exec(i),k=q.cur(),o?(w=parseFloat(o[2]),m=o[3]||(e.cssNumber[j]?"":"px"),m!=="px"&&(e.style(this,j,(w||1)+m),k*=(w||1)/q.cur(),e.style(this,j,k+m)),o[1]&&(w=(o[1]==="-="?-1:1)*w+k),q.custom(k,w,m)):q.custom(k,i,""));return!0})},stop:function(c,a){c&&this.queue([]);this.each(function(){var c=e.timers,b=c.length;for(a||e._unmark(!0,this);b--;)c[b].elem===this&&(a&&c[b](!0),c.splice(b,1))});a||this.dequeue();return this}});e.each({slideDown:h("show",
1),slideUp:h("hide",1),slideToggle:h("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(c,a){e.fn[c]=function(c,b,e){return this.animate(a,c,b,e)}});e.extend({speed:function(c,a,b){var f=c&&typeof c=="object"?e.extend({},c):{complete:b||!b&&a||e.isFunction(c)&&c,duration:c,easing:b&&a||a&&!e.isFunction(a)&&a};f.duration=e.fx.off?0:typeof f.duration=="number"?f.duration:f.duration in e.fx.speeds?e.fx.speeds[f.duration]:e.fx.speeds._default;f.old=f.complete;
f.complete=function(c){e.isFunction(f.old)&&f.old.call(this);f.queue!==!1?e.dequeue(this):c!==!1&&e._unmark(this)};return f},easing:{linear:function(c,a,b,e){return b+e*c},swing:function(c,a,b,e){return(-Math.cos(c*Math.PI)/2+0.5)*e+b}},timers:[],fx:function(c,a,b){this.options=a;this.elem=c;this.prop=b;a.orig=a.orig||{}}});e.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(e.fx.step[this.prop]||e.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=
null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var c,a=e.css(this.elem,this.prop);return isNaN(c=parseFloat(a))?!a||a==="auto"?0:a:c},custom:function(c,a,b){function f(c){return d.step(c)}var d=this,g=e.fx,h;this.startTime=va||i();this.start=c;this.end=a;this.unit=b||this.unit||(e.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;f.elem=this.elem;f()&&e.timers.push(f)&&!pa&&(Ea?(pa=!0,h=function(){pa&&(Ea(h),g.tick())},Ea(h)):pa=setInterval(g.tick,
g.interval))},show:function(){this.options.orig[this.prop]=e.style(this.elem,this.prop);this.options.show=!0;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());e(this.elem).show()},hide:function(){this.options.orig[this.prop]=e.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(c){var a=va||i(),b=!0,f=this.elem,d=this.options,g,h;if(c||a>=d.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();d.animatedProperties[this.prop]=
!0;for(g in d.animatedProperties)d.animatedProperties[g]!==!0&&(b=!1);if(b){d.overflow!=null&&!e.support.shrinkWrapBlocks&&e.each(["","X","Y"],function(c,a){f.style["overflow"+a]=d.overflow[c]});d.hide&&e(f).hide();if(d.hide||d.show)for(var j in d.animatedProperties)e.style(f,j,d.orig[j]);d.complete.call(f)}return!1}d.duration==Infinity?this.now=a:(h=a-this.startTime,this.state=h/d.duration,this.pos=e.easing[d.animatedProperties[this.prop]](this.state,h,0,1,d.duration),this.now=this.start+(this.end-
this.start)*this.pos);this.update();return!0}};e.extend(e.fx,{tick:function(){for(var c=e.timers,a=0;a<c.length;++a)c[a]()||c.splice(a--,1);c.length||e.fx.stop()},interval:13,stop:function(){clearInterval(pa);pa=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){e.style(c.elem,"opacity",c.now)},_default:function(c){c.elem.style&&c.elem.style[c.prop]!=null?c.elem.style[c.prop]=(c.prop==="width"||c.prop==="height"?Math.max(0,c.now):c.now)+c.unit:c.elem[c.prop]=c.now}}});e.expr&&
e.expr.filters&&(e.expr.filters.animated=function(c){return e.grep(e.timers,function(a){return c===a.elem}).length});var Db=/^t(?:able|d|h)$/i,Va=/^(?:body|html)$/i;"getBoundingClientRect"in n.documentElement?e.fn.offset=function(c){var a=this[0],b;if(c)return this.each(function(a){e.offset.setOffset(this,c,a)});if(!a||!a.ownerDocument)return null;if(a===a.ownerDocument.body)return e.offset.bodyOffset(a);try{b=a.getBoundingClientRect()}catch(f){}var d=a.ownerDocument,h=d.documentElement;if(!b||!e.contains(h,
a))return b?{top:b.top,left:b.left}:{top:0,left:0};a=d.body;d=g(d);return{top:b.top+(d.pageYOffset||e.support.boxModel&&h.scrollTop||a.scrollTop)-(h.clientTop||a.clientTop||0),left:b.left+(d.pageXOffset||e.support.boxModel&&h.scrollLeft||a.scrollLeft)-(h.clientLeft||a.clientLeft||0)}}:e.fn.offset=function(c){var a=this[0];if(c)return this.each(function(a){e.offset.setOffset(this,c,a)});if(!a||!a.ownerDocument)return null;if(a===a.ownerDocument.body)return e.offset.bodyOffset(a);e.offset.initialize();
for(var b,f=a.offsetParent,d=a.ownerDocument,g=d.documentElement,h=d.body,i=(d=d.defaultView)?d.getComputedStyle(a,null):a.currentStyle,j=a.offsetTop,l=a.offsetLeft;(a=a.parentNode)&&a!==h&&a!==g;){if(e.offset.supportsFixedPosition&&i.position==="fixed")break;b=d?d.getComputedStyle(a,null):a.currentStyle;j-=a.scrollTop;l-=a.scrollLeft;a===f&&(j+=a.offsetTop,l+=a.offsetLeft,e.offset.doesNotAddBorder&&(!e.offset.doesAddBorderForTableAndCells||!Db.test(a.nodeName))&&(j+=parseFloat(b.borderTopWidth)||
0,l+=parseFloat(b.borderLeftWidth)||0),f=a.offsetParent);e.offset.subtractsBorderForOverflowNotVisible&&b.overflow!=="visible"&&(j+=parseFloat(b.borderTopWidth)||0,l+=parseFloat(b.borderLeftWidth)||0);i=b}if(i.position==="relative"||i.position==="static")j+=h.offsetTop,l+=h.offsetLeft;e.offset.supportsFixedPosition&&i.position==="fixed"&&(j+=Math.max(g.scrollTop,h.scrollTop),l+=Math.max(g.scrollLeft,h.scrollLeft));return{top:j,left:l}};e.offset={initialize:function(){var a=n.body,b=n.createElement("div"),
f,d,g,h=parseFloat(e.css(a,"marginTop"))||0;e.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);f=b.firstChild;
d=f.firstChild;g=f.nextSibling.firstChild.firstChild;this.doesNotAddBorder=d.offsetTop!==5;this.doesAddBorderForTableAndCells=g.offsetTop===5;d.style.position="fixed";d.style.top="20px";this.supportsFixedPosition=d.offsetTop===20||d.offsetTop===15;d.style.position=d.style.top="";f.style.overflow="hidden";f.style.position="relative";this.subtractsBorderForOverflowNotVisible=d.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==h;a.removeChild(b);e.offset.initialize=e.noop},bodyOffset:function(a){var b=
a.offsetTop,f=a.offsetLeft;e.offset.initialize();e.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(e.css(a,"marginTop"))||0,f+=parseFloat(e.css(a,"marginLeft"))||0);return{top:b,left:f}},setOffset:function(a,b,f){var d=e.css(a,"position");d==="static"&&(a.style.position="relative");var g=e(a),h=g.offset(),i=e.css(a,"top"),j=e.css(a,"left"),l={},q={},k,w;(d==="absolute"||d==="fixed")&&e.inArray("auto",[i,j])>-1?(q=g.position(),k=q.top,w=q.left):(k=parseFloat(i)||0,w=parseFloat(j)||0);e.isFunction(b)&&
(b=b.call(a,f,h));b.top!=null&&(l.top=b.top-h.top+k);b.left!=null&&(l.left=b.left-h.left+w);"using"in b?b.using.call(a,l):g.css(l)}};e.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),f=this.offset(),d=Va.test(b[0].nodeName)?{top:0,left:0}:b.offset();f.top-=parseFloat(e.css(a,"marginTop"))||0;f.left-=parseFloat(e.css(a,"marginLeft"))||0;d.top+=parseFloat(e.css(b[0],"borderTopWidth"))||0;d.left+=parseFloat(e.css(b[0],"borderLeftWidth"))||0;return{top:f.top-
d.top,left:f.left-d.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||n.body;a&&!Va.test(a.nodeName)&&e.css(a,"position")==="static";)a=a.offsetParent;return a})}});e.each(["Left","Top"],function(a,b){var f="scroll"+b;e.fn[f]=function(b){var h,i;if(b===d){h=this[0];return!h?null:(i=g(h))?"pageXOffset"in i?i[a?"pageYOffset":"pageXOffset"]:e.support.boxModel&&i.document.documentElement[f]||i.document.body[f]:h[f]}return this.each(function(){i=g(this);i?i.scrollTo(a?
e(i).scrollLeft():b,a?b:e(i).scrollTop()):this[f]=b})}});e.each(["Height","Width"],function(a,b){var f=b.toLowerCase();e.fn["inner"+b]=function(){var a=this[0];return a&&a.style?parseFloat(e.css(a,f,"padding")):null};e.fn["outer"+b]=function(a){var c=this[0];return c&&c.style?parseFloat(e.css(c,f,a?"margin":"border")):null};e.fn[f]=function(a){var c=this[0];if(!c)return a==null?null:this;if(e.isFunction(a))return this.each(function(c){var b=e(this);b[f](a.call(this,c,b[f]()))});if(e.isWindow(c)){var g=
c.document.documentElement["client"+b];return c.document.compatMode==="CSS1Compat"&&g||c.document.body["client"+b]||g}if(c.nodeType===9)return Math.max(c.documentElement["client"+b],c.body["scroll"+b],c.documentElement["scroll"+b],c.body["offset"+b],c.documentElement["offset"+b]);return a===d?(c=e.css(c,f),g=parseFloat(c),e.isNaN(g)?c:g):this.css(f,typeof a=="string"?a:a+"px")}});a.jQuery=a.$=e})(window);(function(a,d,g){function b(b){var e=this,f=b.elements,d=f.tooltip,g=".bgiframe-"+b.id;a.extend(e,{init:function(){f.bgiframe=a('<iframe class="ui-tooltip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';"  style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>');f.bgiframe.appendTo(d);d.bind("tooltipmove"+g,e.adjust)},adjust:function(){var a=b.get("dimensions"),e=b.plugins.tip,g=f.tip,h,
i;i=parseInt(d.css("border-left-width"),10)||0;i={left:-i,top:-i};e&&g&&(h=e.corner.precedance==="x"?["width","left"]:["height","top"],i[h[1]]-=g[h[0]]());f.bgiframe.css(i).css(a)},destroy:function(){f.bgiframe.remove();d.unbind(g)}});e.init()}function h(b){var e=this,f=b.options.show.modal,g=b.elements,h=g.tooltip,i=".qtipmodal"+b.id,j=a(document.body),m;b.checks.modal={"^show.modal.(on|blur)$":function(){e.init();g.overlay.toggle(h.is(":visible"))}};a.extend(e,{init:function(){if(!f.on)return e;
m=e.create();h.attr("is-modal-qtip",u).css("z-index",C.modal.zindex+a(W+"[is-modal-qtip]").length).unbind(".qtipmodal").unbind(i).bind("tooltipshow.qtipmodal tooltiphide.qtipmodal",function(b,f,d){if((f=b.originalEvent)&&b.type==="tooltiphide"&&/mouse(leave|enter)/.test(f.type)&&a(f.relatedTarget).closest(m[0]).length)try{b.preventDefault()}catch(g){}else e[b.type.replace("tooltip","")](b,d)}).bind("tooltipfocus.qtipmodal",function(b){if(!b.isDefaultPrevented()){var e=a(W).filter("[is-modal-qtip]"),
f=C.modal.zindex+e.length,d=parseInt(h[0].style.zIndex,10);m[0].style.zIndex=f-1;e.each(function(){this.style.zIndex>d&&(this.style.zIndex-=1)});e.end().filter("."+ba).qtip("blur",b.originalEvent);h.addClass(ba)[0].style.zIndex=f;try{b.preventDefault()}catch(g){}}}).bind("tooltiphide.qtipmodal",function(b){a("[is-modal-qtip]").filter(":visible").not(h).last().qtip("focus",b)});f.escape&&a(d).unbind(i).bind("keydown"+i,function(a){a.keyCode===27&&h.hasClass(ba)&&b.hide(a)});f.blur&&g.overlay.unbind(i).bind("click"+
i,function(a){h.hasClass(ba)&&b.hide(a)});return e},create:function(){var b=a("#qtip-overlay");if(b.length)return g.overlay=b.insertAfter(a(W).last());m=g.overlay=a("<div />",{id:"qtip-overlay",html:"<div></div>",mousedown:function(){return p}}).insertAfter(a(W).last());a(d).unbind(".qtipmodal").bind("resize.qtipmodal",function(){m.css({height:a(d).height(),width:a(d).width()})}).triggerHandler("resize");return m},toggle:function(b,d,g){if(b&&b.isDefaultPrevented())return e;var b=f.effect,l=d?"show":
"hide",r=m.is(":visible"),k=a("[is-modal-qtip]").filter(":visible").not(h);m||(m=e.create());if(m.is(":animated")&&r===d||!d&&k.length)return e;d?(m.css({left:0,top:0}),m.toggleClass("blurs",f.blur),j.bind("focusin"+i,function(b){var e=a(b.target).closest(".qtip");!(e.length<1?p:parseInt(e[0].style.zIndex,10)>parseInt(h[0].style.zIndex,10))&&a(b.target).closest(W)[0]!==h[0]&&h.find("input:visible").filter(":first").focus()})):j.undelegate("*","focusin"+i);m.stop(u,p);a.isFunction(b)?b.call(m,d):b===
p?m[l]():m.fadeTo(parseInt(g,10)||90,d?1:0,function(){d||a(this).hide()});d||m.queue(function(a){m.css({left:"",top:""});a()});return e},show:function(a,b){return e.toggle(a,u,b)},hide:function(a,b){return e.toggle(a,p,b)},destroy:function(){var e=m;e&&(e=a("[is-modal-qtip]").not(h).length<1,e?(g.overlay.remove(),a(d).unbind(".qtipmodal")):g.overlay.unbind(".qtipmodal"+b.id),j.undelegate("*","focusin"+i));return h.removeAttr("is-modal-qtip").unbind(".qtipmodal")}});e.init()}function f(b){var e,f,
d;function h(a){var b=a.precedance==="y",e=D[b?"width":"height"],f=D[b?"height":"width"],a=a.string().indexOf("center")>-1,d=e*(a?0.5:1),g=Math.pow,i=Math.round,j,l,k=Math.sqrt(g(d,2)+g(f,2)),d=[K/d*k,K/f*k];d[2]=Math.sqrt(g(d[0],2)-g(K,2));d[3]=Math.sqrt(g(d[1],2)-g(K,2));j=k+d[2]+d[3]+(a?0:d[0]);l=j/k;e=[i(l*f),i(l*e)];return{height:e[b?0:1],width:e[b?1:0]}}function j(a,b,e){var b=b?b:a[a.precedance],f=v.hasClass(fa),a=t.titlebar&&a.y==="top"?t.titlebar:t.content,b="border-"+b+"-width",d;v.addClass(fa);
d=parseInt(a.css(b),10);d=(e?d||parseInt(v.css(b),10):d)||0;v.toggleClass(fa,f);return d}function m(h,i,j){if(t.tip){var h=a.extend({},r.corner),i=j.adjusted,k=b.options.position.adjust.method.split(" "),v=k[0],k=k[1]||k[0],F=p,q=p,Q=0,w=0,y,J={},T;r.corner.fixed!==u&&(v==="shift"&&h.precedance==="x"&&i.left&&h.y!=="center"?h.precedance=h.precedance==="x"?"y":"x":v==="flip"&&i.left&&(h.x=h.x==="center"?i.left>0?"left":"right":h.x==="left"?"right":"left"),k==="shift"&&h.precedance==="y"&&i.top&&h.x!==
"center"?h.precedance=h.precedance==="y"?"x":"y":k==="flip"&&i.top&&(h.y=h.y==="center"?i.top>0?"top":"bottom":h.y==="top"?"bottom":"top"),h.string()!==e&&(f!==i.top||d!==i.left)&&r.update(h,p));y=r.position(h,i);y.right!==g&&(y.left=-y.right);y.bottom!==g&&(y.top=-y.bottom);y.user=Math.max(0,n.offset);if(F=v==="shift"&&!!i.left)h.x==="center"?J["margin-left"]=Q=y["margin-left"]-i.left:(T=y.right!==g?[i.left,-y.left]:[-i.left,y.left],(Q=Math.max(T[0],T[1]))>T[0]&&(j.left-=i.left,F=p),J[y.right!==
g?"right":"left"]=Q);if(q=k==="shift"&&!!i.top)h.y==="center"?J["margin-top"]=w=y["margin-top"]-i.top:(T=y.bottom!==g?[i.top,-y.top]:[-i.top,y.top],(w=Math.max(T[0],T[1]))>T[0]&&(j.top-=i.top,q=p),J[y.bottom!==g?"bottom":"top"]=w);t.tip.css(J).toggle(!(Q&&w||h.x==="center"&&w||h.y==="center"&&Q));j.left-=y.left.charAt?y.user:v!=="shift"||q||!F&&!q?y.left:0;j.top-=y.top.charAt?y.user:k!=="shift"||F||!F&&!q?y.top:0;d=i.left;f=i.top;e=h.string()}}var r=this,n=b.options.style.tip,t=b.elements,v=t.tooltip;
f=0;d=0;e="";var D={width:n.width,height:n.height},H,k,K=n.border||0,M=!!(a("<canvas />")[0]||{}).getContext;r.mimic=r.corner=A;r.border=K;r.offset=n.offset;r.size=D;b.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){r.init()||r.destroy();b.reposition()},"^style.tip.(height|width)$":function(){D={width:n.width,height:n.height};r.create();r.update();b.reposition()},"^content.title.text|style.(classes|widget)$":function(){t.tip&&r.update()}};a.extend(r,{init:function(){var b=r.detectCorner()&&
(M||a.browser.msie);b&&(r.create(),r.update(),v.unbind(".qtip-tip").bind("tooltipmove.qtip-tip",m));return b},detectCorner:function(){var a=n.corner,e=b.options.position,f=e.at,e=e.my.string?e.my.string():e.my;if(a===p||e===p&&f===p)return p;a===u?r.corner=new C.Corner(e):a.string||(r.corner=new C.Corner(a),r.corner.fixed=u);return r.corner.string()!=="centercenter"},detectColours:function(){var e,f,d=t.tip.css({backgroundColor:"",border:""});e=r.corner;var g=e[e.precedance],h="border-"+g+"-color";
f="border"+g.charAt(0)+g.substr(1)+"Color";var g=/rgba?\(0, 0, 0(, 0)?\)|transparent/i,i=a(document.body).css("color"),j=b.elements.content.css("color"),m=t.titlebar&&(e.y==="top"||e.y==="center"&&d.position().top+D.height/2+n.offset<t.titlebar.outerHeight(1))?t.titlebar:t.content;v.addClass(fa);H=e=d.css("background-color");k=f=d[0].style[f]||d.css(h)||v.css(h);if(!e||g.test(e))H=m.css("background-color")||"transparent",g.test(H)&&(H=v.css("background-color")||e);if(!f||g.test(f)||f===i)if(k=m.css(h)||
"transparent",g.test(k)||k===j)k=f;a("*",d).add(d).css("background-color","transparent").css("border","");v.removeClass(fa)},create:function(){var b=D.width,e=D.height;t.tip&&t.tip.remove();t.tip=a("<div />",{"class":"ui-tooltip-tip"}).css({width:b,height:e}).prependTo(v);M?a("<canvas />").appendTo(t.tip)[0].getContext("2d").save():t.tip.html('<vml:shape coordorigin="0,0" style="display:inline-block; position:absolute; behavior:url(#default#VML);"></vml:shape><vml:shape coordorigin="0,0" style="display:inline-block; position:absolute; behavior:url(#default#VML);"></vml:shape>')},
update:function(b,e){var f=t.tip,d=f.children(),g=D.width,l=D.height,q=n.mimic,m=Math.round,w,y,J,I,v;b||(b=r.corner);q===p?q=b:(q=new C.Corner(q),q.precedance=b.precedance,q.x==="inherit"?q.x=b.x:q.y==="inherit"?q.y=b.y:q.x===q.y&&(q[b.precedance]=b[b.precedance]));w=q.precedance;r.detectColours();k!=="transparent"&&k!=="#123456"?(K=j(b,A,u),n.border===0&&K>0&&(H=k),r.border=K=n.border!==u?n.border:K):r.border=K=0;J=i(q,g,l);r.size=v=h(b);f.css(v);b.precedance==="y"?I=[m(q.x==="left"?K:q.x==="right"?
v.width-g-K:(v.width-g)/2),m(q.y==="top"?v.height-l:0)]:I=[m(q.x==="left"?v.width-g:0),m(q.y==="top"?K:q.y==="bottom"?v.height-l-K:(v.height-l)/2)];M?(d.attr(v),y=d[0].getContext("2d"),y.restore(),y.save(),y.clearRect(0,0,3E3,3E3),y.translate(I[0],I[1]),y.beginPath(),y.moveTo(J[0][0],J[0][1]),y.lineTo(J[1][0],J[1][1]),y.lineTo(J[2][0],J[2][1]),y.closePath(),y.fillStyle=H,y.strokeStyle=k,y.lineWidth=K*2,y.lineJoin="miter",y.miterLimit=100,K&&y.stroke(),y.fill()):(J="m"+J[0][0]+","+J[0][1]+" l"+J[1][0]+
","+J[1][1]+" "+J[2][0]+","+J[2][1]+" xe",I[2]=K&&/^(r|b)/i.test(b.string())?parseFloat(a.browser.version,10)===8?2:1:0,d.css({antialias:""+(q.string().indexOf("center")>-1),left:I[0]-I[2]*Number(w==="x"),top:I[1]-I[2]*Number(w==="y"),width:g+K,height:l+K}).each(function(b){var e=a(this);e[e.prop?"prop":"attr"]({coordsize:g+K+" "+(l+K),path:J,fillcolor:H,filled:!!b,stroked:!b}).css({display:K||b?"block":"none"});!b&&e.html()===""&&e.html('<vml:stroke weight="'+K*2+'px" color="'+k+'" miterlimit="1000" joinstyle="miter"  style="behavior:url(#default#VML); display:inline-block;" />')}));
e!==p&&r.position(b)},position:function(b){var e=t.tip,f={},d=Math.max(0,n.offset),g,i,l;if(n.corner===p||!e)return p;b=b||r.corner;g=b.precedance;i=h(b);l=[b.x,b.y];g==="x"&&l.reverse();a.each(l,function(e,h){var l,q;if(h==="center")l=g==="y"?"left":"top",f[l]="50%",f["margin-"+l]=-Math.round(i[g==="y"?"width":"height"]/2)+d;else{l=j(b,h,u);var k=a.browser.mozilla,m=b.y+(k?"":"-")+b.x,k=(k?"-moz-":a.browser.webkit?"-webkit-":"")+(k?"border-radius-"+m:"border-"+m+"-radius");q=parseInt((t.titlebar&&
b.y==="top"?t.titlebar:t.content).css(k),10)||parseInt(v.css(k),10)||0;f[h]=e?K?j(b,h):0:d+(q>l?q:0)}});f[b[g]]-=i[g==="x"?"width":"height"];e.css({top:"",bottom:"",left:"",right:"",margin:""}).css(f);return f},destroy:function(){t.tip&&t.tip.remove();v.unbind(".qtip-tip")}});r.init()}function i(a,b,f){var d=Math.ceil(b/2),g=Math.ceil(f/2),b={bottomright:[[0,0],[b,f],[b,0]],bottomleft:[[0,0],[b,0],[0,f]],topright:[[0,f],[b,0],[b,f]],topleft:[[0,0],[0,f],[b,f]],topcenter:[[0,f],[d,0],[b,f]],bottomcenter:[[0,
0],[b,0],[d,f]],rightcenter:[[0,0],[b,g],[0,f]],leftcenter:[[b,0],[b,f],[0,g]]};b.lefttop=b.bottomright;b.righttop=b.bottomleft;b.leftbottom=b.topright;b.rightbottom=b.topleft;return b[a.string()]}function j(b){var e=this,f=b.elements.tooltip,d=b.options.content.ajax,g=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;b.checks.ajax={"^content.ajax":function(a,b,g){b==="ajax"&&(d=g);b==="once"?e.init():d&&d.url?e.load():f.unbind(".qtip-ajax")}};a.extend(e,{init:function(){d&&d.url&&f.unbind(".qtip-ajax")[d.once?
"one":"bind"]("tooltipshow.qtip-ajax",e.load);return e},load:function(f,h){var i=d.url.indexOf(" "),j=d.url,m,r=d.once&&!d.loading&&h;if(r)try{f.preventDefault()}catch(n){}else if(f&&f.isDefaultPrevented())return e;i>-1&&(m=j.substr(i),j=j.substr(0,i));a.ajax(a.extend({success:function(e){m&&(e=a("<div/>").append(e.replace(g,"")).find(m));b.set("content.text",e)},error:function(a,e,f){b.set("content.text",e+": "+f)},context:b},d,{url:j,complete:function(){r&&(b.show(f.originalEvent),h=p);a.isFunction(d.complete)&&
d.complete.apply(this,arguments)}}))}});e.init()}function m(b,e){var f,d,g,h,i,j=a(this),m=a(document.body),H=this===document?m:j;d=j.metadata?j.metadata(e.metadata):A;var M=e.metadata.type==="html5"&&d?d[e.metadata.name]:A,N=j.data(e.metadata.name||"qtipopts");try{N=typeof N==="string"?(new Function("return "+N))():N}catch(W){v("Unable to parse HTML5 attribute data: "+N)}h=a.extend(u,{},D.defaults,e,typeof N==="object"?r(N):A,r(M||d));d=h.position;h.id=b;if("boolean"===typeof h.content.text)if(g=
j.attr(h.content.attr),h.content.attr!==p&&g)h.content.text=g;else return v("Unable to locate content for tooltip! Aborting render of tooltip on element: ",j),p;d.container===p&&(d.container=m);d.target===p&&(d.target=H);h.show.target===p&&(h.show.target=H);h.show.solo===u&&(h.show.solo=m);h.hide.target===p&&(h.hide.target=H);h.position.viewport===u&&(h.position.viewport=d.container);d.at=new C.Corner(d.at);d.my=new C.Corner(d.my);if(a.data(this,"qtip"))if(h.overwrite)j.qtip("destroy");else if(h.overwrite===
p)return p;h.suppress&&(i=a.attr(this,"title"))&&a(this).removeAttr("title").attr(n,i);f=new t(j,h,b,!!g);a.data(this,"qtip",f);j.bind("remove.qtip-"+b,function(){f.destroy()});return f}function t(b,e,f,h){function i(){var b=[e.show.target[0],e.hide.target[0],k.rendered&&E.tooltip[0],e.position.container[0],e.position.viewport[0],d,document];k.rendered?a([]).pushStack(a.grep(b,function(a){return typeof a==="object"})).unbind(L):e.show.target.unbind(L+"-create")}function j(){var g,h,i,m,r;function n(a){s.is(":visible")&&
k.reposition(a)}function t(a){if(s.hasClass(V))return p;clearTimeout(k.timers.inactive);k.timers.inactive=setTimeout(function(){k.hide(a)},e.hide.inactive)}function v(b){if(s.hasClass(V)||P||U)return p;var f=a(b.relatedTarget||b.target),d=f.closest(W)[0]===s[0],f=f[0]===g[0];clearTimeout(k.timers.show);clearTimeout(k.timers.hide);if(C.target==="mouse"&&d||e.hide.fixed&&/mouse(out|leave|move)/.test(b.type)&&(d||f))try{b.preventDefault(),b.stopImmediatePropagation()}catch(h){}else e.hide.delay>0?k.timers.hide=
setTimeout(function(){k.hide(b)},e.hide.delay):k.hide(b)}function x(a){if(s.hasClass(V))return p;g.trigger("qtip-"+f+"-inactive");clearTimeout(k.timers.show);clearTimeout(k.timers.hide);var b=function(){k.toggle(u,a)};e.show.delay>0?k.timers.show=setTimeout(b,e.show.delay):b()}var C=e.position;g=e.show.target;h=e.hide.target;i=a(C.viewport);m=a(document);r=a(d);var A=a.trim(""+e.show.event).split(" "),H=a.trim(""+e.hide.event).split(" "),R=a.browser.msie&&parseInt(a.browser.version,10)===6;s.bind("mouseenter"+
L+" mouseleave"+L,function(a){var b=a.type==="mouseenter";b&&k.focus(a);s.toggleClass(qa,b)});e.hide.fixed&&(h=h.add(s),s.bind("mouseover"+L,function(){s.hasClass(V)||clearTimeout(k.timers.hide)}));/mouse(out|leave)/i.test(e.hide.event)?e.hide.leave==="window"&&r.bind("mouseout"+L,function(a){/select|option/.test(a.target)&&!a.relatedTarget&&k.hide(a)}):/mouse(over|enter)/i.test(e.show.event)&&h.bind("mouseleave"+L,function(){clearTimeout(k.timers.show)});(""+e.hide.event).indexOf("unfocus")>-1&&
m.bind("mousedown"+L,function(e){var f=a(e.target);!s.hasClass(V)&&s.is(":visible");f[0]!==s[0]&&f.parents(W).length===0&&f.add(b).length>1&&k.hide(e)});"number"===typeof e.hide.inactive&&(g.bind("qtip-"+f+"-inactive",t),a.each(D.inactiveEvents,function(a,b){h.add(E.tooltip).bind(b+L+"-inactive",t)}));a.each(H,function(b,e){var f=a.inArray(e,A),d=a(h);f>-1&&d.add(g).length===d.length||e==="unfocus"?(g.bind(e+L,function(a){s.is(":visible")?v(a):x(a)}),delete A[f]):h.bind(e+L,v)});a.each(A,function(a,
b){g.bind(b+L,x)});"number"===typeof e.hide.distance&&g.add(s).bind("mousemove"+L,function(a){var b=F.origin||{},f=e.hide.distance,d=Math.abs;(d(a.pageX-b.pageX)>=f||d(a.pageY-b.pageY)>=f)&&k.hide(a)});C.target==="mouse"&&(g.bind("mousemove"+L,function(a){M={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),C.adjust.mouse&&(e.hide.event&&s.bind("mouseleave"+L,function(a){(a.relatedTarget||a.target)!==g[0]&&k.hide(a)}),m.bind("mousemove"+L,function(a){!s.hasClass(V)&&s.is(":visible")&&k.reposition(a||
M)})));(C.adjust.resize||i.length)&&(a.event.special.resize?i:r).bind("resize"+L,n);(i.length||R&&s.css("position")==="fixed")&&i.bind("scroll"+L,n)}function m(e,f){function d(b){function e(d){d&&(delete j[d.src],clearTimeout(k.timers.img[d.src]),a(d).unbind(L));a.isEmptyObject(j)&&(k.redraw(),f!==p&&k.reposition(F.event),b())}var i,j={};if((i=h.find("img:not([height]):not([width])")).length===0)return e();i.each(function(b,f){if(j[f.src]===g){var d=0;(function Ca(){if(f.height||f.width||d>3)return e(f);
d+=1;k.timers.img[f.src]=setTimeout(Ca,700)})();a(f).bind("error"+L+" load"+L,function(){e(this)});j[f.src]=f}})}var h=E.content;if(!k.rendered||!e)return p;a.isFunction(e)&&(e=e.call(b,F.event,k)||"");e.jquery&&e.length>0?h.empty().append(e.css({display:"block"})):h.html(e);k.rendered<0?s.queue("fx",d):(U=0,d(a.noop));return k}function t(e,f){var d=E.title;if(!k.rendered||!e)return p;a.isFunction(e)&&(e=e.call(b,F.event,k));if(e===p)return ta(p);e.jquery&&e.length>0?d.empty().append(e.css({display:"block"})):
d.html(e);k.redraw();f!==p&&k.rendered&&s.is(":visible")&&k.reposition(F.event)}function v(){var b=ga+"-title";E.titlebar&&ta();E.titlebar=a("<div />",{"class":H+"-titlebar "+(e.style.widget?"ui-widget-header":"")}).append(E.title=a("<div />",{id:b,"class":H+"-title","aria-atomic":u})).insertBefore(E.content);e.content.title.button?Y():k.rendered&&k.redraw()}function Y(){var b=e.content.title.button,f=typeof b==="string"?b:"Close tooltip";E.button&&E.button.remove();b.jquery?E.button=b:E.button=a("<a />",
{"class":"ui-state-default "+(e.style.widget?"":H+"-icon"),title:f,"aria-label":f}).prepend(a("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"}));E.button.appendTo(E.titlebar).attr("role","button").hover(function(b){a(this).toggleClass("ui-state-hover",b.type==="mouseenter")}).click(function(a){s.hasClass(V)||k.hide(a);return p}).bind("mousedown keydown mouseup keyup mouseout",function(b){a(this).toggleClass("ui-state-active ui-state-focus",b.type.substr(-4)==="down")});k.redraw()}function ta(a){E.title&&
(E.titlebar.remove(),E.titlebar=E.title=E.button=A,a!==p&&k.reposition())}function ya(){var a=e.style.widget;s.toggleClass(N,a).toggleClass(ea,!a);E.content.toggleClass(N+"-content",a);E.titlebar&&E.titlebar.toggleClass(N+"-header",a);E.button&&E.button.toggleClass(H+"-icon",!a)}function ua(a){for(var b=0,f,d=e,a=a.split(".");d=d[a[b++]];)b<a.length&&(f=d);return[f||e,a.pop()]}var k=this,K=document.body,ga=H+"-"+f,P=0,U=0,s=a(),L=".qtip-"+f,E,F;k.id=f;k.rendered=p;k.elements=E={target:b};k.timers=
{img:{}};k.options=e;k.checks={};k.plugins={};k.cache=F={event:{},target:a(),disabled:p,attr:h};k.checks.builtin={"^id$":function(b,e,f){b=f===u?D.nextid:f;e=H+"-"+b;b!==p&&b.length>0&&!a("#"+e).length&&(s[0].id=e,E.content[0].id=e+"-content",E.title[0].id=e+"-title")},"^content.text$":function(a,b,e){m(e)},"^content.title.text$":function(a,b,e){if(!e)return ta();!E.title&&e&&v();t(e)},"^content.title.button$":function(a,b,e){a=E.button;b=E.title;k.rendered&&(e?(b||v(),Y()):a.remove())},"^position.(my|at)$":function(a,
b,e){"string"===typeof e&&(a[b]=new C.Corner(e))},"^position.container$":function(a,b,e){k.rendered&&s.appendTo(e)},"^show.ready$":function(){k.rendered?k.toggle(u):k.render(1)},"^style.classes$":function(a,b,e){s.attr("class",H+" qtip ui-helper-reset "+e)},"^style.widget|content.title":ya,"^events.(render|show|move|hide|focus|blur)$":function(b,e,f){s[(a.isFunction(f)?"":"un")+"bind"]("tooltip"+e,f)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var a=
e.position;s.attr("tracking",a.target==="mouse"&&a.adjust.mouse);i();j()}};a.extend(k,{render:function(f){if(k.rendered)return k;var d=e.content.text,g=e.content.title.text,h=e.position,i=a.Event("tooltiprender");a.attr(b[0],"aria-describedby",ga);s=E.tooltip=a("<div/>",{id:ga,"class":H+" qtip ui-helper-reset "+ea+" "+e.style.classes+" "+H+"-pos-"+e.position.my.abbreviation(),width:e.style.width||"",height:e.style.height||"",tracking:h.target==="mouse"&&h.adjust.mouse,role:"alert","aria-live":"polite",
"aria-atomic":p,"aria-describedby":ga+"-content","aria-hidden":u}).toggleClass(V,F.disabled).data("qtip",k).appendTo(e.position.container).append(E.content=a("<div />",{"class":H+"-content",id:ga+"-content","aria-atomic":u}));k.rendered=-1;P=U=1;g&&(v(),a.isFunction(g)||t(g,p));a.isFunction(d)||m(d,p);k.rendered=u;ya();a.each(e.events,function(b,e){a.isFunction(e)&&s.bind(b==="toggle"?"tooltipshow tooltiphide":"tooltip"+b,e)});a.each(C,function(){this.initialize==="render"&&this(k)});j();s.queue("fx",
function(a){i.originalEvent=F.event;s.trigger(i,[k]);P=U=0;k.redraw();(e.show.ready||f)&&k.toggle(u,F.event);a()});return k},get:function(a){var b,f;switch(a.toLowerCase()){case "dimensions":b={height:s.outerHeight(),width:s.outerWidth()};break;case "offset":b=C.offset(s,e.position.container);break;default:f=ua(a.toLowerCase()),b=f[0][f[1]],b=b.precedance?b.string():b}return b},set:function(b,f){var d=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,g=/^content\.(title|attr)|style/i,
h=p,i=p,j=k.checks,l;"string"===typeof b?(l=b,b={},b[l]=f):b=a.extend(u,{},b);a.each(b,function(e,f){var j=ua(e.toLowerCase()),l;l=j[0][j[1]];j[0][j[1]]="object"===typeof f&&f.nodeType?a(f):f;b[e]=[j[0],j[1],f,l];h=d.test(e)||h;i=g.test(e)||i});r(e);P=U=1;a.each(b,function(a,b){var e,f,d;for(e in j)for(f in j[e])if(d=RegExp(f,"i").exec(a))b.push(d),j[e][f].apply(k,b)});P=U=0;s.is(":visible")&&k.rendered&&(h&&k.reposition(e.position.target==="mouse"?A:F.event),i&&k.redraw());return k},toggle:function(b,
d){function g(){b?(a.browser.msie&&s[0].style.removeAttribute("filter"),s.css("overflow",""),"string"===typeof i.autofocus&&a(i.autofocus,s).focus(),v=a.Event("tooltipvisible"),v.originalEvent=d?F.event:A,s.trigger(v,[k])):s.css({display:"",visibility:"",opacity:"",left:"",top:""})}if(!k.rendered)if(b)k.render(1);else return k;var h=b?"show":"hide",i=e[h],j=s.is(":visible"),l=!d||e[h].target.length<2||F.target[0]===d.target,r=e.position,n=e.content,v;(typeof b).search("boolean|number")&&(b=!j);if(!s.is(":animated")&&
j===b&&l)return k;if(d){if(/over|enter/.test(d.type)&&/out|leave/.test(F.event.type)&&d.target===e.show.target[0]&&s.has(d.relatedTarget).length)return k;F.event=a.extend({},d)}v=a.Event("tooltip"+h);v.originalEvent=d?F.event:A;s.trigger(v,[k,90]);if(v.isDefaultPrevented())return k;a.attr(s[0],"aria-hidden",!b);b?(F.origin=a.extend({},M),k.focus(d),a.isFunction(n.text)&&m(n.text,p),a.isFunction(n.title.text)&&t(n.title.text,p),!la&&r.target==="mouse"&&r.adjust.mouse&&(a(document).bind("mousemove.qtip",
function(a){M={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),la=u),k.reposition(d),i.solo&&a(W,i.solo).not(s).qtip("hide",v)):(clearTimeout(k.timers.show),delete F.origin,la&&!a(W+'[tracking="true"]:visible',i.solo).not(s).length&&(a(document).unbind("mousemove.qtip"),la=p),k.blur(d));l&&s.stop(0,1);i.effect===p?(s[h](),g.call(s)):a.isFunction(i.effect)?(i.effect.call(s,k),s.queue("fx",function(a){g();a()})):s.fadeTo(90,b?1:0,g);b&&i.target.trigger("qtip-"+f+"-inactive");return k},show:function(a){return k.toggle(u,
a)},hide:function(a){return k.toggle(p,a)},focus:function(b){if(!k.rendered)return k;var e=a(W),f=parseInt(s[0].style.zIndex,10),d=D.zindex+e.length,b=a.extend({},b),g;s.hasClass(ba)||(g=a.Event("tooltipfocus"),g.originalEvent=b,s.trigger(g,[k,d]),g.isDefaultPrevented()||(f!==d&&(e.each(function(){this.style.zIndex>f&&(this.style.zIndex-=1)}),e.filter("."+ba).qtip("blur",b)),s.addClass(ba)[0].style.zIndex=d));return k},blur:function(b){var b=a.extend({},b),e;s.removeClass(ba);e=a.Event("tooltipblur");
e.originalEvent=b;s.trigger(e,[k]);return k},reposition:function(b,f){if(!k.rendered||P)return k;P=1;var g=e.position.target,h=e.position,i=h.my,j=h.at,l=h.adjust,m=l.method.split(" "),r=s.outerWidth(),n=s.outerHeight(),t=0,v=0,u=a.Event("tooltipmove"),I=s.css("position")==="fixed",x=h.viewport,z={left:0,top:0},D=p,A=k.plugins.tip,R={horizontal:m[0],vertical:m[1]=m[1]||m[0],enabled:x.jquery&&g[0]!==d&&g[0]!==K&&l.method!=="none",left:function(a){var b=R.horizontal==="shift",e=x.offset.left+x.scrollLeft,
f=i.x==="left"?r:i.x==="right"?-r:-r/2,d=j.x==="left"?t:j.x==="right"?-t:-t/2,g=A&&A.size?A.size.width||0:0,h=A&&A.corner&&A.corner.precedance==="x"&&!b?g:0,k=e-a+h,m=a+r-x.width-e+h,d=f-(i.precedance==="x"||i.x===i.y?d:0),p=i.x==="center";b?(h=A&&A.corner&&A.corner.precedance==="y"?g:0,d=(i.x==="left"?1:-1)*f-h,z.left+=k>0?k:m>0?-m:0,z.left=Math.max(x.offset.left+(h&&A.corner.x==="center"?A.offset:0),a-d,Math.min(Math.max(x.offset.left+x.width,a+d),z.left))):(k>0&&(i.x!=="left"||m>0)?z.left-=d:m>
0&&(i.x!=="right"||k>0)&&(z.left-=p?-d:d),z.left!==a&&p&&(z.left-=l.x),z.left<e&&-z.left>m&&(z.left=a));return z.left-a},top:function(a){var b=R.vertical==="shift",e=x.offset.top+x.scrollTop,f=i.y==="top"?n:i.y==="bottom"?-n:-n/2,d=j.y==="top"?v:j.y==="bottom"?-v:-v/2,g=A&&A.size?A.size.height||0:0,h=A&&A.corner&&A.corner.precedance==="y"&&!b?g:0,k=e-a+h,e=a+n-x.height-e+h,d=f-(i.precedance==="y"||i.x===i.y?d:0),m=i.y==="center";b?(h=A&&A.corner&&A.corner.precedance==="x"?g:0,d=(i.y==="top"?1:-1)*
f-h,z.top+=k>0?k:e>0?-e:0,z.top=Math.max(x.offset.top+(h&&A.corner.x==="center"?A.offset:0),a-d,Math.min(Math.max(x.offset.top+x.height,a+d),z.top))):(k>0&&(i.y!=="top"||e>0)?z.top-=d:e>0&&(i.y!=="bottom"||k>0)&&(z.top-=m?-d:d),z.top!==a&&m&&(z.top-=l.y),z.top<0&&-z.top>e&&(z.top=a));return z.top-a}},E;if(a.isArray(g)&&g.length===2)j={x:"left",y:"top"},z={left:g[0],top:g[1]};else if(g==="mouse"&&(b&&b.pageX||F.event.pageX))j={x:"left",y:"top"},b=(b&&(b.type==="resize"||b.type==="scroll")?F.event:
b&&b.pageX&&b.type==="mousemove"?b:M&&M.pageX&&(l.mouse||!b||!b.pageX)?{pageX:M.pageX,pageY:M.pageY}:!l.mouse&&F.origin&&F.origin.pageX?F.origin:b)||b||F.event||M||{},z={top:b.pageY,left:b.pageX};else{g==="event"?b&&b.target&&b.type!=="scroll"&&b.type!=="resize"?g=F.target=a(b.target):g=F.target:F.target=a(g);g=a(g).eq(0);if(g.length===0)return k;g[0]===document||g[0]===d?(t=C.iOS?d.innerWidth:g.width(),v=C.iOS?d.innerHeight:g.height(),g[0]===d&&(z={top:!I||C.iOS?(x||g).scrollTop():0,left:!I||C.iOS?
(x||g).scrollLeft():0})):g.is("area")&&C.imagemap?z=C.imagemap(g,j,R.enabled?m:p):g[0].namespaceURI==="http://www.w3.org/2000/svg"&&C.svg?z=C.svg(g,j):(t=g.outerWidth(),v=g.outerHeight(),z=C.offset(g,h.container));z.offset&&(t=z.width,v=z.height,D=z.flipoffset,z=z.offset);if(C.iOS<4.1&&C.iOS>3.1||C.iOS==4.3||!C.iOS&&I)E=a(d),z.left-=E.scrollLeft(),z.top-=E.scrollTop();z.left+=j.x==="right"?t:j.x==="center"?t/2:0;z.top+=j.y==="bottom"?v:j.y==="center"?v/2:0}z.left+=l.x+(i.x==="right"?-r:i.x==="center"?
-r/2:0);z.top+=l.y+(i.y==="bottom"?-n:i.y==="center"?-n/2:0);R.enabled?(x={elem:x,height:x[(x[0]===d?"h":"outerH")+"eight"](),width:x[(x[0]===d?"w":"outerW")+"idth"](),scrollLeft:I?0:x.scrollLeft(),scrollTop:I?0:x.scrollTop(),offset:x.offset()||{left:0,top:0}},z.adjusted={left:R.horizontal!=="none"?R.left(z.left):0,top:R.vertical!=="none"?R.top(z.top):0},z.adjusted.left+z.adjusted.top&&s.attr("class",function(a,b){return b.replace(/ui-tooltip-pos-\w+/i,H+"-pos-"+i.abbreviation())}),D&&z.adjusted.left&&
(z.left+=D.left),D&&z.adjusted.top&&(z.top+=D.top)):z.adjusted={left:0,top:0};u.originalEvent=a.extend({},b);s.trigger(u,[k,z,x.elem||x]);if(u.isDefaultPrevented())return k;delete z.adjusted;f===p||isNaN(z.left)||isNaN(z.top)||g==="mouse"||!a.isFunction(h.effect)?s.css(z):a.isFunction(h.effect)&&(h.effect.call(s,k,a.extend({},z)),s.queue(function(b){a(this).css({opacity:"",height:""});a.browser.msie&&this.style.removeAttribute("filter");b()}));P=0;return k},redraw:function(){if(k.rendered<1||U)return k;
var a=e.position.container,b,f,d,g;U=1;e.style.height&&s.css("height",e.style.height);e.style.width?s.css("width",e.style.width):(s.css("width","").addClass(fa),f=s.width()+1,d=s.css("max-width")||"",g=s.css("min-width")||"",b=(d+g).indexOf("%")>-1?a.width()/100:0,d=(d.indexOf("%")>-1?b:1)*parseInt(d,10)||f,g=(g.indexOf("%")>-1?b:1)*parseInt(g,10)||0,f=d+g?Math.min(Math.max(f,g),d):f,s.css("width",Math.round(f)).removeClass(fa));U=0;return k},disable:function(b){"boolean"!==typeof b&&(b=!s.hasClass(V)&&
!F.disabled);k.rendered?(s.toggleClass(V,b),a.attr(s[0],"aria-disabled",b)):F.disabled=!!b;return k},enable:function(){return k.disable(p)},destroy:function(){var d=b[0],g=a.attr(d,n),h=b.data("qtip");k.rendered&&(s.remove(),a.each(k.plugins,function(){this.destroy&&this.destroy()}));clearTimeout(k.timers.show);clearTimeout(k.timers.hide);i();if(!h||k===h)a.removeData(d,"qtip"),e.suppress&&g&&(a.attr(d,"title",g),b.removeAttr(n)),b.removeAttr("aria-describedby");b.unbind(".qtip-"+f);delete Z[k.id];
return b}})}function r(b){var e;if(!b||"object"!==typeof b)return p;"object"!==typeof b.metadata&&(b.metadata={type:b.metadata});if("content"in b){if("object"!==typeof b.content||b.content.jquery)b.content={text:b.content};e=b.content.text||p;!a.isFunction(e)&&(!e&&!e.attr||e.length<1||"object"===typeof e&&!e.jquery)&&(b.content.text=p);"title"in b.content&&("object"!==typeof b.content.title&&(b.content.title={text:b.content.title}),e=b.content.title.text||p,!a.isFunction(e)&&(!e&&!e.attr||e.length<
1||"object"===typeof e&&!e.jquery)&&(b.content.title.text=p))}"position"in b&&"object"!==typeof b.position&&(b.position={my:b.position,at:b.position});"show"in b&&"object"!==typeof b.show&&(b.show.jquery?b.show={target:b.show}:b.show={event:b.show});"hide"in b&&"object"!==typeof b.hide&&(b.hide.jquery?b.hide={target:b.hide}:b.hide={event:b.hide});"style"in b&&"object"!==typeof b.style&&(b.style={classes:b.style});a.each(C,function(){this.sanitize&&this.sanitize(b)});return b}function v(){v.history=
v.history||[];v.history.push(arguments);if("object"===typeof console){var a=console[console.warn?"warn":"log"],b=Array.prototype.slice.call(arguments);typeof arguments[0]==="string"&&(b[0]="qTip2: "+b[0]);a.apply?a.apply(console,b):a(b)}}var u=!0,p=!1,A=null,D,C,M,Z={},H="ui-tooltip",N="ui-widget",V="ui-state-disabled",W="div.qtip."+H,ea=H+"-default",ba=H+"-focus",qa=H+"-hover",fa=H+"-fluid",n="oldtitle",la;D=a.fn.qtip=function(b,e,f){var d=(""+b).toLowerCase(),h=A,i=d==="disable"?[u]:a.makeArray(arguments).slice(1),
j=i[i.length-1],m=this[0]?a.data(this[0],"qtip"):A;if(!arguments.length&&m||d==="api")return m;if("string"===typeof b)return this.each(function(){var b=a.data(this,"qtip");if(!b)return u;j&&j.timeStamp&&(b.cache.event=j);if(d!=="option"&&d!=="options"||!e)b[d]&&b[d].apply(b[d],i);else if(a.isPlainObject(e)||f!==g)b.set(e,f);else return h=b.get(e),p}),h!==A?h:this;if("object"===typeof b||!arguments.length)return m=r(a.extend(u,{},b)),D.bind.call(this,m,j)};D.bind=function(b,e){return this.each(function(f){function d(b){function e(){n.render(typeof b===
"object"||h.show.ready);i.show.add(i.hide).unbind(r)}if(n.cache.disabled)return p;n.cache.event=a.extend({},b);n.cache.target=b?a(b.target):[g];h.show.delay>0?(clearTimeout(n.timers.show),n.timers.show=setTimeout(e,h.show.delay),j.show!==j.hide&&i.hide.bind(j.hide,function(){clearTimeout(n.timers.show)})):e()}var h,i,j,r,n,t;t=a.isArray(b.id)?b.id[f]:b.id;t=!t||t===p||t.length<1||Z[t]?D.nextid++:Z[t]=t;r=".qtip-"+t+"-create";n=m.call(this,t,b);if(n===p)return u;h=n.options;a.each(C,function(){this.initialize===
"initialize"&&this(n)});i={show:h.show.target,hide:h.hide.target};j={show:a.trim(""+h.show.event).replace(/ /g,r+" ")+r,hide:a.trim(""+h.hide.event).replace(/ /g,r+" ")+r};/mouse(over|enter)/i.test(j.show)&&!/mouse(out|leave)/i.test(j.hide)&&(j.hide+=" mouseleave"+r);i.show.bind("mousemove"+r,function(a){M={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}});i.show.bind(j.show,d);(h.show.ready||h.prerender)&&d(e)})};C=D.plugins={Corner:function(a){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,
"center").toLowerCase();this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase();this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();this.precedance=a.charAt(0).search(/^(t|b)/)>-1?"y":"x";this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y};this.abbreviation=function(){var a=this.x.substr(0,1),b=this.y.substr(0,1);return a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},offset:function(a,b){function f(a,b){d.left+=b*a.scrollLeft();d.top+=
b*a.scrollTop()}var d=a.offset(),g=b,h=0,i=document.body,j;if(g){do if(g.css("position")!=="static"&&(j=g[0]===i?{left:parseInt(g.css("left"),10)||0,top:parseInt(g.css("top"),10)||0}:g.position(),d.left-=j.left+(parseInt(g.css("borderLeftWidth"),10)||0)+(parseInt(g.css("marginLeft"),10)||0),d.top-=j.top+(parseInt(g.css("borderTopWidth"),10)||0),++h),g[0]===i)break;while(g=g.offsetParent());b[0]!==i&&h>1&&f(b,1)}return d},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||
[0,""])[1]).replace("undefined","3_2").replace("_","."))||p,fn:{attr:function(b,e){if(this.length){var f=this[0],d=a.data(f,"qtip");if(b==="title"&&d&&"object"===typeof d&&d.options.suppress){if(arguments.length<2)return a.attr(f,n);d&&d.options.content.attr==="title"&&d.cache.attr&&d.set("content.text",e);return this.attr(n,e)}}return a.fn.attr_replacedByqTip.apply(this,arguments)},clone:function(b){a([]);var e=a.fn.clone_replacedByqTip.apply(this,arguments);b||e.filter("["+n+"]").attr("title",function(){return a.attr(this,
n)}).removeAttr(n);return e},remove:a.ui?A:function(b,e){a(this).each(function(){e||(!b||a.filter(b,[this]).length)&&a("*",this).add(this).each(function(){a(this).triggerHandler("remove")})})}}};a.each(C.fn,function(b,e){if(!e||a.fn[b+"_replacedByqTip"])return u;var f=a.fn[b+"_replacedByqTip"]=a.fn[b];a.fn[b]=function(){return e.apply(this,arguments)||f.apply(this,arguments)}});D.version="nightly";D.nextid=0;D.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" ");
D.zindex=15E3;D.defaults={prerender:p,id:p,overwrite:u,suppress:u,content:{text:u,attr:"title",title:{text:p,button:p}},position:{my:"top left",at:"bottom right",target:p,container:p,viewport:p,adjust:{x:0,y:0,mouse:u,resize:u,method:"flip flip"},effect:function(b,e){a(this).animate(e,{duration:200,queue:p})}},show:{target:p,event:"mouseenter",effect:u,delay:90,solo:p,ready:p,autofocus:p},hide:{target:p,event:"mouseleave",effect:u,delay:0,fixed:p,inactive:p,leave:"window",distance:p},style:{classes:"",
widget:p,width:p,height:p},events:{render:A,move:A,show:A,hide:A,toggle:A,visible:A,focus:A,blur:A}};C.ajax=function(a){var b=a.plugins.ajax;return"object"===typeof b?b:a.plugins.ajax=new j(a)};C.ajax.initialize="render";C.ajax.sanitize=function(a){var b=a.content,f;b&&"ajax"in b&&(f=b.ajax,typeof f!=="object"&&(f=a.content.ajax={url:f}),"boolean"!==typeof f.once&&f.once&&(f.once=!!f.once))};a.extend(u,D.defaults,{content:{ajax:{loading:u,once:u}}});C.tip=function(a){var b=a.plugins.tip;return"object"===
typeof b?b:a.plugins.tip=new f(a)};C.tip.initialize="render";C.tip.sanitize=function(a){var b=a.style,f;b&&"tip"in b&&(f=a.style.tip,typeof f!=="object"&&(a.style.tip={corner:f}),/string|boolean/i.test(typeof f.corner)||(f.corner=u),typeof f.width!=="number"&&delete f.width,typeof f.height!=="number"&&delete f.height,typeof f.border!=="number"&&f.border!==u&&delete f.border,typeof f.offset!=="number"&&delete f.offset)};a.extend(u,D.defaults,{style:{tip:{corner:u,mimic:p,width:6,height:6,border:u,
offset:0}}});C.modal=function(a){var b=a.plugins.modal;return"object"===typeof b?b:a.plugins.modal=new h(a)};C.modal.initialize="render";C.modal.sanitize=function(a){a.show&&(typeof a.show.modal!=="object"?a.show.modal={on:!!a.show.modal}:typeof a.show.modal.on==="undefined"&&(a.show.modal.on=u))};C.modal.zindex=D.zindex-=200;a.extend(u,D.defaults,{show:{modal:{on:p,effect:u,blur:u,escape:u}}});C.bgiframe=function(f){var e=a.browser,d=f.plugins.bgiframe;return a("select, object").length<1||!e.msie||
e.version.charAt(0)!=="6"?p:"object"===typeof d?d:f.plugins.bgiframe=new b(f)};C.bgiframe.initialize="render"})(jQuery,window);(function(a,d){function g(d,f){var g=d.nodeName.toLowerCase();if("area"===g){f=d.parentNode;g=f.name;if(!d.href||!g||f.nodeName.toLowerCase()!=="map")return!1;d=a("img[usemap=#"+g+"]")[0];return!!d&&b(d)}return(/input|select|textarea|button|object/.test(g)?!d.disabled:"a"==g?d.href||f:f)&&b(d)}function b(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};a.ui.version||(a.extend(a.ui,{version:"1.8.15",
keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(b,f){return typeof b==="number"?this.each(function(){var d=
this;setTimeout(function(){a(d).focus();f&&f.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;b=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,
"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(b){if(b!==d)return this.css("zIndex",b);if(this.length)for(var b=a(this[0]),f;b.length&&b[0]!==document;){f=b.css("position");if(f==="absolute"||f==="relative"||f==="fixed")if(f=parseInt(b.css("zIndex"),10),!isNaN(f)&&f!==0)return f;b=b.parent()}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":
"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.each(["Width","Height"],function(b,f){function g(b,f,d,h){a.each(j,function(){f-=parseFloat(a.curCSS(b,"padding"+this,!0))||0;d&&(f-=parseFloat(a.curCSS(b,"border"+this+"Width",!0))||0);h&&(f-=parseFloat(a.curCSS(b,"margin"+this,!0))||0)});return f}var j=f==="Width"?["Left","Right"]:["Top","Bottom"],m=f.toLowerCase(),t={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,
outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+f]=function(b){return b===d?t["inner"+f].call(this):this.each(function(){a(this).css(m,g(this,b)+"px")})};a.fn["outer"+f]=function(b,d){return typeof b!=="number"?t["outer"+f].call(this,b):this.each(function(){a(this).css(m,g(this,b,!0,d)+"px")})}}),a.extend(a.expr[":"],{data:function(b,f,d){return!!a.data(b,d[3])},focusable:function(b){return g(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var f=a.attr(b,"tabindex"),d=
isNaN(f);return(d||f>=0)&&g(b,!d)}}),a(function(){var b=document.body,f=b.appendChild(f=document.createElement("div"));a.extend(f.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=f.offsetHeight===100;a.support.selectstart="onselectstart"in f;b.removeChild(f).style.display="none"}),a.extend(a.ui,{plugin:{add:function(b,f,d){var b=a.ui[b].prototype,g;for(g in d)b.plugins[g]=b.plugins[g]||[],b.plugins[g].push([f,d[g]])},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var g=
0;g<b.length;g++)a.options[b[g][0]]&&b[g][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(b,f){if(a(b).css("overflow")==="hidden")return!1;var f=f&&f==="left"?"scrollLeft":"scrollTop",d=!1;if(b[f]>0)return!0;b[f]=1;d=b[f]>0;b[f]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(b,f,d,g,m,t){return a.ui.isOverAxis(b,d,m)&&a.ui.isOverAxis(f,g,t)}}))})(jQuery);
(function(a,d){if(a.cleanData){var g=a.cleanData;a.cleanData=function(b){for(var f=0,d;(d=b[f])!=null;f++)a(d).triggerHandler("remove");g(b)}}else{var b=a.fn.remove;a.fn.remove=function(d,f){return this.each(function(){f||(!d||a.filter(d,[this]).length)&&a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")});return b.call(a(this),d,f)})}}a.widget=function(b,f,d){var g=b.split(".")[0],m,b=b.split(".")[1];m=g+"-"+b;if(!d)d=f,f=a.Widget;a.expr[":"][m]=function(f){return!!a.data(f,
b)};a[g]=a[g]||{};a[g][b]=function(a,b){arguments.length&&this._createWidget(a,b)};f=new f;f.options=a.extend(!0,{},f.options);a[g][b].prototype=a.extend(!0,f,{namespace:g,widgetName:b,widgetEventPrefix:a[g][b].prototype.widgetEventPrefix||b,widgetBaseClass:m},d);a.widget.bridge(b,a[g][b])};a.widget.bridge=function(b,f){a.fn[b]=function(g){var j=typeof g==="string",m=Array.prototype.slice.call(arguments,1),t=this,g=!j&&m.length?a.extend.apply(null,[!0,g].concat(m)):g;if(j&&g.charAt(0)==="_")return t;
j?this.each(function(){var f=a.data(this,b),j=f&&a.isFunction(f[g])?f[g].apply(f,m):f;if(j!==f&&j!==d)return t=j,!1}):this.each(function(){var d=a.data(this,b);d?d.option(g||{})._init():a.data(this,b,new f(g,this))});return t}};a.Widget=function(a,b){arguments.length&&this._createWidget(a,b)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(b,f){a.data(f,this.widgetName,this);this.element=a(f);this.options=a.extend(!0,{},this.options,this._getCreateOptions(),
b);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},
option:function(b,f){var g=b;if(arguments.length===0)return a.extend({},this.options);if(typeof b==="string"){if(f===d)return this.options[b];g={};g[b]=f}this._setOptions(g);return this},_setOptions:function(b){var f=this;a.each(b,function(a,b){f._setOption(a,b)});return this},_setOption:function(a,b){this.options[a]=b;a==="disabled"&&this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",b);return this},enable:function(){return this._setOption("disabled",
!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(b,f,d){var g=this.options[b],f=a.Event(f);f.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();d=d||{};if(f.originalEvent)for(var b=a.event.props.length,m;b;)m=a.event.props[--b],f[m]=f.originalEvent[m];this.element.trigger(f,d);return!(a.isFunction(g)&&g.call(this.element[0],f,d)===!1||f.isDefaultPrevented())}}})(jQuery);
(function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var d=this;this.element.bind("mousedown."+this.widgetName,function(a){return d._mouseDown(a)}).bind("click."+this.widgetName,function(g){if(!0===a.data(g.target,d.widgetName+".preventClickEvent"))return a.removeData(g.target,d.widgetName+".preventClickEvent"),g.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(d){d.originalEvent=
d.originalEvent||{};if(!d.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(d);this._mouseDownEvent=d;var g=this,b=d.which==1,h=typeof this.options.cancel=="string"?a(d.target).closest(this.options.cancel).length:!1;if(!b||h||!this._mouseCapture(d))return!0;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){g.mouseDelayMet=!0},this.options.delay);if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)&&(this._mouseStarted=this._mouseStart(d)!==
!1,!this._mouseStarted))return d.preventDefault(),!0;!0===a.data(d.target,this.widgetName+".preventClickEvent")&&a.removeData(d.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(a){return g._mouseMove(a)};this._mouseUpDelegate=function(a){return g._mouseUp(a)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);d.preventDefault();return d.originalEvent.mouseHandled=!0}},_mouseMove:function(d){if(a.browser.msie&&
!(document.documentMode>=9)&&!d.button)return this._mouseUp(d);if(this._mouseStarted)return this._mouseDrag(d),d.preventDefault();if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,d)!==!1)?this._mouseDrag(d):this._mouseUp(d);return!this._mouseStarted},_mouseUp:function(d){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted)this._mouseStarted=
!1,d.target==this._mouseDownEvent.target&&a.data(d.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(d);return!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery);
(function(a){a.ui=a.ui||{};var d=/left|center|right/,g=/top|center|bottom/,b=a.fn.position,h=a.fn.offset;a.fn.position=function(f){if(!f||!f.of)return b.apply(this,arguments);var f=a.extend({},f),h=a(f.of),j=h[0],m=(f.collision||"flip").split(" "),t=f.offset?f.offset.split(" "):[0,0],r,v,u;j.nodeType===9?(r=h.width(),v=h.height(),u={top:0,left:0}):j.setTimeout?(r=h.width(),v=h.height(),u={top:h.scrollTop(),left:h.scrollLeft()}):j.preventDefault?(f.at="left top",r=v=0,u={top:f.of.pageY,left:f.of.pageX}):
(r=h.outerWidth(),v=h.outerHeight(),u=h.offset());a.each(["my","at"],function(){var a=(f[this]||"").split(" ");a.length===1&&(a=d.test(a[0])?a.concat(["center"]):g.test(a[0])?["center"].concat(a):["center","center"]);a[0]=d.test(a[0])?a[0]:"center";a[1]=g.test(a[1])?a[1]:"center";f[this]=a});m.length===1&&(m[1]=m[0]);t[0]=parseInt(t[0],10)||0;t.length===1&&(t[1]=t[0]);t[1]=parseInt(t[1],10)||0;f.at[0]==="right"?u.left+=r:f.at[0]==="center"&&(u.left+=r/2);f.at[1]==="bottom"?u.top+=v:f.at[1]==="center"&&
(u.top+=v/2);u.left+=t[0];u.top+=t[1];return this.each(function(){var b=a(this),d=b.outerWidth(),g=b.outerHeight(),h=parseInt(a.curCSS(this,"marginLeft",!0))||0,i=parseInt(a.curCSS(this,"marginTop",!0))||0,j=d+h+(parseInt(a.curCSS(this,"marginRight",!0))||0),H=g+i+(parseInt(a.curCSS(this,"marginBottom",!0))||0),N=a.extend({},u),V;f.my[0]==="right"?N.left-=d:f.my[0]==="center"&&(N.left-=d/2);f.my[1]==="bottom"?N.top-=g:f.my[1]==="center"&&(N.top-=g/2);N.left=Math.round(N.left);N.top=Math.round(N.top);
V={left:N.left-h,top:N.top-i};a.each(["left","top"],function(b,h){a.ui.position[m[b]]&&a.ui.position[m[b]][h](N,{targetWidth:r,targetHeight:v,elemWidth:d,elemHeight:g,collisionPosition:V,collisionWidth:j,collisionHeight:H,offset:t,my:f.my,at:f.at})});a.fn.bgiframe&&b.bgiframe();b.offset(a.extend(N,{using:f.using}))})};a.ui.position={fit:{left:function(b,d){var g=a(window),g=d.collisionPosition.left+d.collisionWidth-g.width()-g.scrollLeft();b.left=g>0?b.left-g:Math.max(b.left-d.collisionPosition.left,
b.left)},top:function(b,d){var g=a(window),g=d.collisionPosition.top+d.collisionHeight-g.height()-g.scrollTop();b.top=g>0?b.top-g:Math.max(b.top-d.collisionPosition.top,b.top)}},flip:{left:function(b,d){if(d.at[0]!=="center"){var g=a(window),g=d.collisionPosition.left+d.collisionWidth-g.width()-g.scrollLeft(),h=d.my[0]==="left"?-d.elemWidth:d.my[0]==="right"?d.elemWidth:0,t=d.at[0]==="left"?d.targetWidth:-d.targetWidth,r=-2*d.offset[0];b.left+=d.collisionPosition.left<0?h+t+r:g>0?h+t+r:0}},top:function(b,
d){if(d.at[1]!=="center"){var g=a(window),g=d.collisionPosition.top+d.collisionHeight-g.height()-g.scrollTop(),h=d.my[1]==="top"?-d.elemHeight:d.my[1]==="bottom"?d.elemHeight:0,t=d.at[1]==="top"?d.targetHeight:-d.targetHeight,r=-2*d.offset[1];b.top+=d.collisionPosition.top<0?h+t+r:g>0?h+t+r:0}}}};if(!a.offset.setOffset)a.offset.setOffset=function(b,d){if(/static/.test(a.curCSS(b,"position")))b.style.position="relative";var g=a(b),h=g.offset(),t=parseInt(a.curCSS(b,"top",!0),10)||0,r=parseInt(a.curCSS(b,
"left",!0),10)||0,h={top:d.top-h.top+t,left:d.left-h.left+r};"using"in d?d.using.call(b,h):g.css(h)},a.fn.offset=function(b){var d=this[0];return!d||!d.ownerDocument?null:b?this.each(function(){a.offset.setOffset(this,b)}):h.call(this)}})(jQuery);
(function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position=
"relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function(d){var g=this.options;if(this.helper||g.disabled||a(d.target).is(".ui-resizable-handle"))return!1;
this.handle=this._getHandle(d);if(!this.handle)return!1;a(g.iframeFix===!0?"iframe":g.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(a(this).offset()).appendTo("body")});return!0},_mouseStart:function(d){var g=this.options;this.helper=this._createHelper(d);this._cacheHelperProportions();if(a.ui.ddmanager)a.ui.ddmanager.current=this;
this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=
d.pageY;g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt);g.containment&&this._setContainment();if(this._trigger("start",d)===!1)return this._clear(),!1;this._cacheHelperProportions();a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,d);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(d,!0);a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,d);return!0},_mouseDrag:function(d,g){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");
if(!g){g=this._uiHash();if(this._trigger("drag",d,g)===!1)return this._mouseUp({}),!1;this.position=g.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,d);return!1},_mouseStop:function(d){var g=!1;a.ui.ddmanager&&!this.options.dropBehaviour&&(g=a.ui.ddmanager.drop(this,d));if(this.dropped)g=this.dropped,this.dropped=
!1;if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return!1;if(this.options.revert=="invalid"&&!g||this.options.revert=="valid"&&g||this.options.revert===!0||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,g)){var b=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){b._trigger("stop",d)!==!1&&b._clear()})}else this._trigger("stop",d)!==!1&&this._clear();return!1},_mouseUp:function(d){this.options.iframeFix===
!0&&a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,d);return a.ui.mouse.prototype._mouseUp.call(this,d)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(d){var g=!this.options.handle||!a(this.options.handle,this.element).length?!0:!1;a(this.options.handle,this.element).find("*").andSelf().each(function(){this==d.target&&(g=!0)});return g},_createHelper:function(d){var g=
this.options,d=a.isFunction(g.helper)?a(g.helper.apply(this.element[0],[d])):g.helper=="clone"?this.element.clone().removeAttr("id"):this.element;d.parents("body").length||d.appendTo(g.appendTo=="parent"?this.element[0].parentNode:g.appendTo);d[0]!=this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))&&d.css("position","absolute");return d},_adjustOffsetFromHelper:function(d){typeof d=="string"&&(d=d.split(" "));a.isArray(d)&&(d={left:+d[0],top:+d[1]||0});if("left"in d)this.offset.click.left=
d.left+this.margins.left;if("right"in d)this.offset.click.left=this.helperProportions.width-d.right+this.margins.left;if("top"in d)this.offset.click.top=d.top+this.margins.top;if("bottom"in d)this.offset.click.top=this.helperProportions.height-d.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var d=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(d.left+=
this.scrollParent.scrollLeft(),d.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)d={top:0,left:0};return{top:d.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:d.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),
10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},
_setContainment:function(){var d=this.options;if(d.containment=="parent")d.containment=this.helper[0].parentNode;if(d.containment=="document"||d.containment=="window")this.containment=[d.containment=="document"?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,d.containment=="document"?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(d.containment=="document"?0:a(window).scrollLeft())+a(d.containment=="document"?document:window).width()-this.helperProportions.width-
this.margins.left,(d.containment=="document"?0:a(window).scrollTop())+(a(d.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(d.containment)&&d.containment.constructor!=Array){var d=a(d.containment),g=d[0];if(g){d.offset();var b=a(g).css("overflow")!="hidden";this.containment=[(parseInt(a(g).css("borderLeftWidth"),10)||0)+(parseInt(a(g).css("paddingLeft"),10)||0),(parseInt(a(g).css("borderTopWidth"),
10)||0)+(parseInt(a(g).css("paddingTop"),10)||0),(b?Math.max(g.scrollWidth,g.offsetWidth):g.offsetWidth)-(parseInt(a(g).css("borderLeftWidth"),10)||0)-(parseInt(a(g).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(b?Math.max(g.scrollHeight,g.offsetHeight):g.offsetHeight)-(parseInt(a(g).css("borderTopWidth"),10)||0)-(parseInt(a(g).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=d}}else if(d.containment.constructor==
Array)this.containment=d.containment},_convertPositionTo:function(d,g){if(!g)g=this.position;var d=d=="absolute"?1:-1,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(b[0].tagName);return{top:g.top+this.offset.relative.top*d+this.offset.parent.top*d-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():
h?0:b.scrollTop())*d),left:g.left+this.offset.relative.left*d+this.offset.parent.left*d-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:b.scrollLeft())*d)}},_generatePosition:function(d){var g=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(b[0].tagName),f=d.pageX,i=d.pageY;
if(this.originalPosition){var j;if(this.containment)this.relative_container?(j=this.relative_container.offset(),j=[this.containment[0]+j.left,this.containment[1]+j.top,this.containment[2]+j.left,this.containment[3]+j.top]):j=this.containment,d.pageX-this.offset.click.left<j[0]&&(f=j[0]+this.offset.click.left),d.pageY-this.offset.click.top<j[1]&&(i=j[1]+this.offset.click.top),d.pageX-this.offset.click.left>j[2]&&(f=j[2]+this.offset.click.left),d.pageY-this.offset.click.top>j[3]&&(i=j[3]+this.offset.click.top);
g.grid&&(i=g.grid[1]?this.originalPageY+Math.round((i-this.originalPageY)/g.grid[1])*g.grid[1]:this.originalPageY,i=j?!(i-this.offset.click.top<j[1]||i-this.offset.click.top>j[3])?i:!(i-this.offset.click.top<j[1])?i-g.grid[1]:i+g.grid[1]:i,f=g.grid[0]?this.originalPageX+Math.round((f-this.originalPageX)/g.grid[0])*g.grid[0]:this.originalPageX,f=j?!(f-this.offset.click.left<j[0]||f-this.offset.click.left>j[2])?f:!(f-this.offset.click.left<j[0])?f-g.grid[0]:f+g.grid[0]:f)}return{top:i-this.offset.click.top-
this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():h?0:b.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:b.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=
this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=!1},_trigger:function(d,g,b){b=b||this._uiHash();a.ui.plugin.call(this,d,[g,b]);if(d=="drag")this.positionAbs=this._convertPositionTo("absolute");return a.Widget.prototype._trigger.call(this,d,g,b)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.15"});a.ui.plugin.add("draggable",
"connectToSortable",{start:function(d,g){var b=a(this).data("draggable"),h=b.options,f=a.extend({},g,{item:b.element});b.sortables=[];a(h.connectToSortable).each(function(){var g=a.data(this,"sortable");g&&!g.options.disabled&&(b.sortables.push({instance:g,shouldRevert:g.options.revert}),g.refreshPositions(),g._trigger("activate",d,f))})},stop:function(d,g){var b=a(this).data("draggable"),h=a.extend({},g,{item:b.element});a.each(b.sortables,function(){if(this.instance.isOver){this.instance.isOver=
0;b.cancelHelperRemoval=!0;this.instance.cancelHelperRemoval=!1;if(this.shouldRevert)this.instance.options.revert=!0;this.instance._mouseStop(d);this.instance.options.helper=this.instance.options._helper;b.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",d,h)})},drag:function(d,g){var b=a(this).data("draggable"),h=this;a.each(b.sortables,function(){this.instance.positionAbs=b.positionAbs;
this.instance.helperProportions=b.helperProportions;this.instance.offset.click=b.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver)this.instance.isOver=1,this.instance.currentItem=a(h).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return g.helper[0]},d.target=this.instance.currentItem[0],this.instance._mouseCapture(d,
!0),this.instance._mouseStart(d,!0,!0),this.instance.offset.click.top=b.offset.click.top,this.instance.offset.click.left=b.offset.click.left,this.instance.offset.parent.left-=b.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=b.offset.parent.top-this.instance.offset.parent.top,b._trigger("toSortable",d),b.dropped=this.instance.element,b.currentItem=b.element,this.instance.fromOutside=b;this.instance.currentItem&&this.instance._mouseDrag(d)}else if(this.instance.isOver)this.instance.isOver=
0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",d,this.instance._uiHash(this.instance)),this.instance._mouseStop(d,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),b._trigger("fromSortable",d),b.dropped=!1})}});a.ui.plugin.add("draggable","cursor",{start:function(){var d=a("body"),g=a(this).data("draggable").options;if(d.css("cursor"))g._cursor=
d.css("cursor");d.css("cursor",g.cursor)},stop:function(){var d=a(this).data("draggable").options;d._cursor&&a("body").css("cursor",d._cursor)}});a.ui.plugin.add("draggable","opacity",{start:function(d,g){d=a(g.helper);g=a(this).data("draggable").options;if(d.css("opacity"))g._opacity=d.css("opacity");d.css("opacity",g.opacity)},stop:function(d,g){d=a(this).data("draggable").options;d._opacity&&a(g.helper).css("opacity",d._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var d=a(this).data("draggable");
if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML")d.overflowOffset=d.scrollParent.offset()},drag:function(d){var g=a(this).data("draggable"),b=g.options,h=!1;if(g.scrollParent[0]!=document&&g.scrollParent[0].tagName!="HTML"){if(!b.axis||b.axis!="x")if(g.overflowOffset.top+g.scrollParent[0].offsetHeight-d.pageY<b.scrollSensitivity)g.scrollParent[0].scrollTop=h=g.scrollParent[0].scrollTop+b.scrollSpeed;else if(d.pageY-g.overflowOffset.top<b.scrollSensitivity)g.scrollParent[0].scrollTop=
h=g.scrollParent[0].scrollTop-b.scrollSpeed;if(!b.axis||b.axis!="y")if(g.overflowOffset.left+g.scrollParent[0].offsetWidth-d.pageX<b.scrollSensitivity)g.scrollParent[0].scrollLeft=h=g.scrollParent[0].scrollLeft+b.scrollSpeed;else if(d.pageX-g.overflowOffset.left<b.scrollSensitivity)g.scrollParent[0].scrollLeft=h=g.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(!b.axis||b.axis!="x")d.pageY-a(document).scrollTop()<b.scrollSensitivity?h=a(document).scrollTop(a(document).scrollTop()-b.scrollSpeed):
a(window).height()-(d.pageY-a(document).scrollTop())<b.scrollSensitivity&&(h=a(document).scrollTop(a(document).scrollTop()+b.scrollSpeed));if(!b.axis||b.axis!="y")d.pageX-a(document).scrollLeft()<b.scrollSensitivity?h=a(document).scrollLeft(a(document).scrollLeft()-b.scrollSpeed):a(window).width()-(d.pageX-a(document).scrollLeft())<b.scrollSensitivity&&(h=a(document).scrollLeft(a(document).scrollLeft()+b.scrollSpeed))}h!==!1&&a.ui.ddmanager&&!b.dropBehaviour&&a.ui.ddmanager.prepareOffsets(g,d)}});
a.ui.plugin.add("draggable","snap",{start:function(){var d=a(this).data("draggable"),g=d.options;d.snapElements=[];a(g.snap.constructor!=String?g.snap.items||":data(draggable)":g.snap).each(function(){var b=a(this),g=b.offset();this!=d.element[0]&&d.snapElements.push({item:this,width:b.outerWidth(),height:b.outerHeight(),top:g.top,left:g.left})})},drag:function(d,g){for(var b=a(this).data("draggable"),h=b.options,f=h.snapTolerance,i=g.offset.left,j=i+b.helperProportions.width,m=g.offset.top,t=m+b.helperProportions.height,
r=b.snapElements.length-1;r>=0;r--){var v=b.snapElements[r].left,u=v+b.snapElements[r].width,p=b.snapElements[r].top,A=p+b.snapElements[r].height;if(v-f<i&&i<u+f&&p-f<m&&m<A+f||v-f<i&&i<u+f&&p-f<t&&t<A+f||v-f<j&&j<u+f&&p-f<m&&m<A+f||v-f<j&&j<u+f&&p-f<t&&t<A+f){if(h.snapMode!="inner"){var D=Math.abs(p-t)<=f,C=Math.abs(A-m)<=f,M=Math.abs(v-j)<=f,Z=Math.abs(u-i)<=f;if(D)g.position.top=b._convertPositionTo("relative",{top:p-b.helperProportions.height,left:0}).top-b.margins.top;if(C)g.position.top=b._convertPositionTo("relative",
{top:A,left:0}).top-b.margins.top;if(M)g.position.left=b._convertPositionTo("relative",{top:0,left:v-b.helperProportions.width}).left-b.margins.left;if(Z)g.position.left=b._convertPositionTo("relative",{top:0,left:u}).left-b.margins.left}var H=D||C||M||Z;if(h.snapMode!="outer"){D=Math.abs(p-m)<=f;C=Math.abs(A-t)<=f;M=Math.abs(v-i)<=f;Z=Math.abs(u-j)<=f;if(D)g.position.top=b._convertPositionTo("relative",{top:p,left:0}).top-b.margins.top;if(C)g.position.top=b._convertPositionTo("relative",{top:A-b.helperProportions.height,
left:0}).top-b.margins.top;if(M)g.position.left=b._convertPositionTo("relative",{top:0,left:v}).left-b.margins.left;if(Z)g.position.left=b._convertPositionTo("relative",{top:0,left:u-b.helperProportions.width}).left-b.margins.left}!b.snapElements[r].snapping&&(D||C||M||Z||H)&&b.options.snap.snap&&b.options.snap.snap.call(b.element,d,a.extend(b._uiHash(),{snapItem:b.snapElements[r].item}));b.snapElements[r].snapping=D||C||M||Z||H}else b.snapElements[r].snapping&&b.options.snap.release&&b.options.snap.release.call(b.element,
d,a.extend(b._uiHash(),{snapItem:b.snapElements[r].item})),b.snapElements[r].snapping=!1}}});a.ui.plugin.add("draggable","stack",{start:function(){var d=a(this).data("draggable").options,d=a.makeArray(a(d.stack)).sort(function(b,d){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(d).css("zIndex"),10)||0)});if(d.length){var g=parseInt(d[0].style.zIndex)||0;a(d).each(function(a){this.style.zIndex=g+a});this[0].style.zIndex=g+d.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(d,
g){d=a(g.helper);g=a(this).data("draggable").options;if(d.css("zIndex"))g._zIndex=d.css("zIndex");d.css("zIndex",g.zIndex)},stop:function(d,g){d=a(this).data("draggable").options;d._zIndex&&a(g.helper).css("zIndex",d._zIndex)}})})(jQuery);
(function(a){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect"},_create:function(){var d=this.options,g=d.accept;this.isover=0;this.isout=1;this.accept=a.isFunction(g)?g:function(a){return a.is(g)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[d.scope]=a.ui.ddmanager.droppables[d.scope]||[];a.ui.ddmanager.droppables[d.scope].push(this);
d.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var d=a.ui.ddmanager.droppables[this.options.scope],g=0;g<d.length;g++)d[g]==this&&d.splice(g,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(d,g){if(d=="accept")this.accept=a.isFunction(g)?g:function(a){return a.is(g)};a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(d){var g=a.ui.ddmanager.current;this.options.activeClass&&
this.element.addClass(this.options.activeClass);g&&this._trigger("activate",d,this.ui(g))},_deactivate:function(d){var g=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);g&&this._trigger("deactivate",d,this.ui(g))},_over:function(d){var g=a.ui.ddmanager.current;if(g&&(g.currentItem||g.element)[0]!=this.element[0])if(this.accept.call(this.element[0],g.currentItem||g.element))this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",
d,this.ui(g))},_out:function(d){var g=a.ui.ddmanager.current;if(g&&(g.currentItem||g.element)[0]!=this.element[0])if(this.accept.call(this.element[0],g.currentItem||g.element))this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",d,this.ui(g))},_drop:function(d,g){var b=g||a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0])return!1;var h=!1;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var d=a.data(this,
"droppable");if(d.options.greedy&&!d.options.disabled&&d.options.scope==b.options.scope&&d.accept.call(d.element[0],b.currentItem||b.element)&&a.ui.intersect(b,a.extend(d,{offset:d.element.offset()}),d.options.tolerance))return h=!0,!1});if(h)return!1;return this.accept.call(this.element[0],b.currentItem||b.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",d,this.ui(b)),
this.element):!1},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}});a.extend(a.ui.droppable,{version:"1.8.15"});a.ui.intersect=function(d,g,b){if(!g.offset)return!1;var h=(d.positionAbs||d.position.absolute).left,f=h+d.helperProportions.width,i=(d.positionAbs||d.position.absolute).top,j=i+d.helperProportions.height,m=g.offset.left,t=m+g.proportions.width,r=g.offset.top,v=r+g.proportions.height;switch(b){case "fit":return m<=h&&f<=
t&&r<=i&&j<=v;case "intersect":return m<h+d.helperProportions.width/2&&f-d.helperProportions.width/2<t&&r<i+d.helperProportions.height/2&&j-d.helperProportions.height/2<v;case "pointer":return a.ui.isOver((d.positionAbs||d.position.absolute).top+(d.clickOffset||d.offset.click).top,(d.positionAbs||d.position.absolute).left+(d.clickOffset||d.offset.click).left,r,m,g.proportions.height,g.proportions.width);case "touch":return(i>=r&&i<=v||j>=r&&j<=v||i<r&&j>v)&&(h>=m&&h<=t||f>=m&&f<=t||h<m&&f>t);default:return!1}};
a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(d,g){var b=a.ui.ddmanager.droppables[d.options.scope]||[],h=g?g.type:null,f=(d.currentItem||d.element).find(":data(droppable)").andSelf(),i=0;a:for(;i<b.length;i++)if(!(b[i].options.disabled||d&&!b[i].accept.call(b[i].element[0],d.currentItem||d.element))){for(var j=0;j<f.length;j++)if(f[j]==b[i].element[0]){b[i].proportions.height=0;continue a}b[i].visible=b[i].element.css("display")!="none";if(b[i].visible)h=="mousedown"&&
b[i]._activate.call(b[i],g),b[i].offset=b[i].element.offset(),b[i].proportions={width:b[i].element[0].offsetWidth,height:b[i].element[0].offsetHeight}}},drop:function(d,g){var b=!1;a.each(a.ui.ddmanager.droppables[d.options.scope]||[],function(){if(this.options&&(!this.options.disabled&&this.visible&&a.ui.intersect(d,this,this.options.tolerance)&&(b=b||this._drop.call(this,g)),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],d.currentItem||d.element)))this.isout=1,this.isover=
0,this._deactivate.call(this,g)});return b},dragStart:function(d,g){d.element.parentsUntil("body").bind("scroll.droppable",function(){d.options.refreshPositions||a.ui.ddmanager.prepareOffsets(d,g)})},drag:function(d,g){d.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(d,g);a.each(a.ui.ddmanager.droppables[d.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var b=a.ui.intersect(d,this,this.options.tolerance);if(b=!b&&this.isover==1?"isout":b&&this.isover==
0?"isover":null){var h;if(this.options.greedy){var f=this.element.parents(":data(droppable):eq(0)");if(f.length)h=a.data(f[0],"droppable"),h.greedyChild=b=="isover"?1:0}if(h&&b=="isover")h.isover=0,h.isout=1,h._out.call(h,g);this[b]=1;this[b=="isout"?"isover":"isout"]=0;this[b=="isover"?"_over":"_out"].call(this,g);if(h&&b=="isout")h.isout=0,h.isover=1,h._over.call(h,g)}}})},dragStop:function(d,g){d.element.parentsUntil("body").unbind("scroll.droppable");d.options.refreshPositions||a.ui.ddmanager.prepareOffsets(d,
g)}}})(jQuery);
(function(a){var d=0;a.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var d=this,b=this.element[0].ownerDocument,h;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(b){if(!d.options.disabled&&!d.element.propAttr("readOnly")){h=!1;
var i=a.ui.keyCode;switch(b.keyCode){case i.PAGE_UP:d._move("previousPage",b);break;case i.PAGE_DOWN:d._move("nextPage",b);break;case i.UP:d._move("previous",b);b.preventDefault();break;case i.DOWN:d._move("next",b);b.preventDefault();break;case i.ENTER:case i.NUMPAD_ENTER:d.menu.active&&(h=!0,b.preventDefault());case i.TAB:if(!d.menu.active)break;d.menu.select(b);break;case i.ESCAPE:d.element.val(d.term);d.close(b);break;default:clearTimeout(d.searching),d.searching=setTimeout(function(){if(d.term!=
d.element.val())d.selectedItem=null,d.search(null,b)},d.options.delay)}}}).bind("keypress.autocomplete",function(a){h&&(h=!1,a.preventDefault())}).bind("focus.autocomplete",function(){if(!d.options.disabled)d.selectedItem=null,d.previous=d.element.val()}).bind("blur.autocomplete",function(a){if(!d.options.disabled)clearTimeout(d.searching),d.closing=setTimeout(function(){d.close(a);d._change(a)},150)});this._initSource();this.response=function(){return d._response.apply(d,arguments)};this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||
"body",b)[0]).mousedown(function(b){var h=d.menu.element[0];a(b.target).closest(".ui-menu-item").length||setTimeout(function(){a(document).one("mousedown",function(b){b.target!==d.element[0]&&b.target!==h&&!a.ui.contains(h,b.target)&&d.close()})},1);setTimeout(function(){clearTimeout(d.closing)},13)}).menu({focus:function(a,b){b=b.item.data("item.autocomplete");!1!==d._trigger("focus",a,{item:b})&&/^key/.test(a.originalEvent.type)&&d.element.val(b.value)},selected:function(a,h){var j=h.item.data("item.autocomplete"),
m=d.previous;if(d.element[0]!==b.activeElement)d.element.focus(),d.previous=m,setTimeout(function(){d.previous=m;d.selectedItem=j},1);!1!==d._trigger("select",a,{item:j})&&d.element.val(j.value);d.term=d.element.val();d.close(a);d.selectedItem=j},blur:function(){d.menu.element.is(":visible")&&d.element.val()!==d.term&&d.element.val(d.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");a.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");
this.menu.element.remove();a.Widget.prototype.destroy.call(this)},_setOption:function(d,b){a.Widget.prototype._setOption.apply(this,arguments);d==="source"&&this._initSource();d==="appendTo"&&this.menu.element.appendTo(a(b||"body",this.element[0].ownerDocument)[0]);d==="disabled"&&b&&this.xhr&&this.xhr.abort()},_initSource:function(){var g=this,b,h;a.isArray(this.options.source)?(b=this.options.source,this.source=function(d,g){g(a.ui.autocomplete.filter(b,d.term))}):typeof this.options.source==="string"?
(h=this.options.source,this.source=function(b,i){g.xhr&&g.xhr.abort();g.xhr=a.ajax({url:h,data:b,dataType:"json",autocompleteRequest:++d,success:function(a){this.autocompleteRequest===d&&i(a)},error:function(){this.autocompleteRequest===d&&i([])}})}):this.source=this.options.source},search:function(a,b){a=a!=null?a:this.element.val();this.term=this.element.val();if(a.length<this.options.minLength)return this.close(b);clearTimeout(this.closing);if(this._trigger("search",b)!==!1)return this._search(a)},
_search:function(a){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:a},this.response)},_response:function(a){!this.options.disabled&&a&&a.length?(a=this._normalize(a),this._suggest(a),this._trigger("open")):this.close();this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(a){clearTimeout(this.closing);this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.deactivate(),this._trigger("close",a))},_change:function(a){this.previous!==
this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(d){return d.length&&d[0].label&&d[0].value?d:a.map(d,function(b){return typeof b==="string"?{label:b,value:b}:a.extend({label:b.label||b.value,value:b.value||b.label},b)})},_suggest:function(d){var b=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(b,d);this.menu.deactivate();this.menu.refresh();b.show();this._resizeMenu();b.position(a.extend({of:this.element},this.options.position));
this.options.autoFocus&&this.menu.next(new a.Event("mouseover"))},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(d,b){var h=this;a.each(b,function(a,b){h._renderItem(d,b)})},_renderItem:function(d,b){return a("<li></li>").data("item.autocomplete",b).append(a("<a></a>").text(b.label)).appendTo(d)},_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&
/^next/.test(a))this.element.val(this.term),this.menu.deactivate();else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});a.extend(a.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(d,b){var h=RegExp(a.ui.autocomplete.escapeRegex(b),"i");return a.grep(d,function(a){return h.test(a.label||a.value||a)})}})})(jQuery);
(function(a){a.widget("ui.menu",{_create:function(){var d=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(g){a(g.target).closest(".ui-menu-item a").length&&(g.preventDefault(),d.select(g))});this.refresh()},refresh:function(){var d=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
-1).mouseenter(function(g){d.activate(g,a(this).parent())}).mouseleave(function(){d.deactivate()})},activate:function(a,g){this.deactivate();if(this.hasScroll()){var b=g.offset().top-this.element.offset().top,h=this.element.scrollTop(),f=this.element.height();b<0?this.element.scrollTop(h+b):b>=f&&this.element.scrollTop(h+b-f+g.height())}this.active=g.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",a,{item:g})},deactivate:function(){if(this.active)this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),
this._trigger("blur"),this.active=null},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(a,g,b){this.active?(a=this.active[a+"All"](".ui-menu-item").eq(0),a.length?this.activate(b,a):this.activate(b,this.element.children(g))):this.activate(b,this.element.children(g))},
nextPage:function(d){if(this.hasScroll())if(!this.active||this.last())this.activate(d,this.element.children(".ui-menu-item:first"));else{var g=this.active.offset().top,b=this.element.height(),h=this.element.children(".ui-menu-item").filter(function(){var d=a(this).offset().top-g-b+a(this).height();return d<10&&d>-10});h.length||(h=this.element.children(".ui-menu-item:last"));this.activate(d,h)}else this.activate(d,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},
previousPage:function(d){if(this.hasScroll())if(!this.active||this.first())this.activate(d,this.element.children(".ui-menu-item:last"));else{var g=this.active.offset().top,b=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var d=a(this).offset().top-g+b-a(this).height();return d<10&&d>-10});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(d,result)}else this.activate(d,this.element.children(".ui-menu-item").filter(!this.active||
this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[a.fn.prop?"prop":"attr"]("scrollHeight")},select:function(a){this._trigger("selected",a,{item:this.active})}})})(jQuery);
(function(a){a.widget("ui.slider",a.ui.mouse,{widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var d=this,g=this.options,b=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),h=g.values&&g.values.length||1,f=[];this._mouseSliding=this._keySliding=!1;this._animateOff=!0;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+
this.orientation+" ui-widget ui-widget-content ui-corner-all"+(g.disabled?" ui-slider-disabled ui-disabled":""));this.range=a([]);if(g.range){if(g.range===!0){if(!g.values)g.values=[this._valueMin(),this._valueMin()];if(g.values.length&&g.values.length!==2)g.values=[g.values[0],g.values[0]]}this.range=a("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(g.range==="min"||g.range==="max"?" ui-slider-range-"+g.range:""))}for(var i=b.length;i<h;i+=1)f.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");
this.handles=b.add(a(f.join("")).appendTo(d.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(a){a.preventDefault()}).hover(function(){g.disabled||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){g.disabled?a(this).blur():(a(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),a(this).addClass("ui-state-focus"))}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(b){a(this).data("index.ui-slider-handle",
b)});this.handles.keydown(function(b){var f=!0,g=a(this).data("index.ui-slider-handle"),h,i,u;if(!d.options.disabled){switch(b.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(f=!1,!d._keySliding&&(d._keySliding=!0,a(this).addClass("ui-state-active"),h=d._start(b,g),h===!1))return}u=d.options.step;h=d.options.values&&d.options.values.length?i=d.values(g):
i=d.value();switch(b.keyCode){case a.ui.keyCode.HOME:i=d._valueMin();break;case a.ui.keyCode.END:i=d._valueMax();break;case a.ui.keyCode.PAGE_UP:i=d._trimAlignValue(h+(d._valueMax()-d._valueMin())/5);break;case a.ui.keyCode.PAGE_DOWN:i=d._trimAlignValue(h-(d._valueMax()-d._valueMin())/5);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(h===d._valueMax())return;i=d._trimAlignValue(h+u);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(h===d._valueMin())return;i=d._trimAlignValue(h-u)}d._slide(b,
g,i);return f}}).keyup(function(b){var f=a(this).data("index.ui-slider-handle");if(d._keySliding)d._keySliding=!1,d._stop(b,f),d._change(b,f),a(this).removeClass("ui-state-active")});this._refreshValue();this._animateOff=!1},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();return this},_mouseCapture:function(d){var g=
this.options,b,h,f,i,j;if(g.disabled)return!1;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();b=this._normValueFromMouse({x:d.pageX,y:d.pageY});h=this._valueMax()-this._valueMin()+1;i=this;this.handles.each(function(d){var g=Math.abs(b-i.values(d));h>g&&(h=g,f=a(this),j=d)});g.range===!0&&this.values(1)===g.min&&(j+=1,f=a(this.handles[j]));if(this._start(d,j)===!1)return!1;this._mouseSliding=!0;i._handleIndex=j;f.addClass("ui-state-active").focus();
g=f.offset();this._clickOffset=!a(d.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:d.pageX-g.left-f.width()/2,top:d.pageY-g.top-f.height()/2-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(d,j,b);return this._animateOff=!0},_mouseStart:function(){return!0},_mouseDrag:function(a){var g=this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,
this._handleIndex,g);return!1},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=!1;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var g;this.orientation==="horizontal"?(g=this.elementSize.width,a=a.x-this.elementOffset.left-(this._clickOffset?
this._clickOffset.left:0)):(g=this.elementSize.height,a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0));g=a/g;g>1&&(g=1);g<0&&(g=0);this.orientation==="vertical"&&(g=1-g);a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+g*a)},_start:function(a,g){var b={handle:this.handles[g],value:this.value()};if(this.options.values&&this.options.values.length)b.value=this.values(g),b.values=this.values();return this._trigger("start",a,b)},_slide:function(a,
g,b){var h;if(this.options.values&&this.options.values.length){h=this.values(g?0:1);if(this.options.values.length===2&&this.options.range===!0&&(g===0&&b>h||g===1&&b<h))b=h;b!==this.values(g)&&(h=this.values(),h[g]=b,a=this._trigger("slide",a,{handle:this.handles[g],value:b,values:h}),this.values(g?0:1),a!==!1&&this.values(g,b,!0))}else b!==this.value()&&(a=this._trigger("slide",a,{handle:this.handles[g],value:b}),a!==!1&&this.value(b))},_stop:function(a,g){var b={handle:this.handles[g],value:this.value()};
if(this.options.values&&this.options.values.length)b.value=this.values(g),b.values=this.values();this._trigger("stop",a,b)},_change:function(a,g){if(!this._keySliding&&!this._mouseSliding){var b={handle:this.handles[g],value:this.value()};if(this.options.values&&this.options.values.length)b.value=this.values(g),b.values=this.values();this._trigger("change",a,b)}},value:function(a){if(arguments.length)this.options.value=this._trimAlignValue(a),this._refreshValue(),this._change(null,0);else return this._value()},
values:function(d,g){var b,h,f;if(arguments.length>1)this.options.values[d]=this._trimAlignValue(g),this._refreshValue(),this._change(null,d);else if(arguments.length)if(a.isArray(arguments[0])){b=this.options.values;h=arguments[0];for(f=0;f<b.length;f+=1)b[f]=this._trimAlignValue(h[f]),this._change(null,f);this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(d):this.value();else return this._values()},_setOption:function(d,g){var b,h=0;if(a.isArray(this.options.values))h=
this.options.values.length;a.Widget.prototype._setOption.apply(this,arguments);switch(d){case "disabled":g?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.propAttr("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.propAttr("disabled",!1),this.element.removeClass("ui-disabled"));break;case "orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);
this._refreshValue();break;case "value":this._animateOff=!0;this._refreshValue();this._change(null,0);this._animateOff=!1;break;case "values":this._animateOff=!0;this._refreshValue();for(b=0;b<h;b+=1)this._change(null,b);this._animateOff=!1}},_value:function(){return this._trimAlignValue(this.options.value)},_values:function(a){var g,b;if(arguments.length)return g=this.options.values[a],this._trimAlignValue(g);else{g=this.options.values.slice();for(b=0;b<g.length;b+=1)g[b]=this._trimAlignValue(g[b]);
return g}},_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var g=this.options.step>0?this.options.step:1,b=(a-this._valueMin())%g;a-=b;Math.abs(b)*2>=g&&(a+=b>0?g:-g);return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var d=this.options.range,g=this.options,b=this,h=!this._animateOff?g.animate:!1,f,i={},j,m,t,r;if(this.options.values&&
this.options.values.length)this.handles.each(function(d){f=(b.values(d)-b._valueMin())/(b._valueMax()-b._valueMin())*100;i[b.orientation==="horizontal"?"left":"bottom"]=f+"%";a(this).stop(1,1)[h?"animate":"css"](i,g.animate);if(b.options.range===!0)if(b.orientation==="horizontal"){if(d===0)b.range.stop(1,1)[h?"animate":"css"]({left:f+"%"},g.animate);if(d===1)b.range[h?"animate":"css"]({width:f-j+"%"},{queue:!1,duration:g.animate})}else{if(d===0)b.range.stop(1,1)[h?"animate":"css"]({bottom:f+"%"},
g.animate);if(d===1)b.range[h?"animate":"css"]({height:f-j+"%"},{queue:!1,duration:g.animate})}j=f});else{m=this.value();t=this._valueMin();r=this._valueMax();f=r!==t?(m-t)/(r-t)*100:0;i[b.orientation==="horizontal"?"left":"bottom"]=f+"%";this.handle.stop(1,1)[h?"animate":"css"](i,g.animate);if(d==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[h?"animate":"css"]({width:f+"%"},g.animate);if(d==="max"&&this.orientation==="horizontal")this.range[h?"animate":"css"]({width:100-f+"%"},{queue:!1,
duration:g.animate});if(d==="min"&&this.orientation==="vertical")this.range.stop(1,1)[h?"animate":"css"]({height:f+"%"},g.animate);if(d==="max"&&this.orientation==="vertical")this.range[h?"animate":"css"]({height:100-f+"%"},{queue:!1,duration:g.animate})}}});a.extend(a.ui.slider,{version:"1.8.15"})})(jQuery);(function(a,d){a.fn.jPlayer=function(b){var g=typeof b==="string",f=Array.prototype.slice.call(arguments,1),i=this,b=!g&&f.length?a.extend.apply(null,[!0,b].concat(f)):b;if(g&&b.charAt(0)==="_")return i;g?this.each(function(){var g=a.data(this,"jPlayer"),h=g&&a.isFunction(g[b])?g[b].apply(g,f):g;if(h!==g&&h!==d)return i=h,!1}):this.each(function(){var d=a.data(this,"jPlayer");d?d.option(b||{}):a.data(this,"jPlayer",new a.jPlayer(b,this))});return i};a.jPlayer=function(b,d){if(arguments.length){this.element=
a(d);this.options=a.extend(!0,{},this.options,b);var f=this;this.element.bind("remove.jPlayer",function(){f.destroy()});this._init()}};a.jPlayer.emulateMethods="load play pause";a.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate";a.jPlayer.emulateOptions="muted volume";a.jPlayer.reservedEvent="ready flashreset resize repeat error warning";a.jPlayer.event={ready:"jPlayer_ready",flashreset:"jPlayer_flashreset",resize:"jPlayer_resize",repeat:"jPlayer_repeat",
click:"jPlayer_click",error:"jPlayer_error",warning:"jPlayer_warning",loadstart:"jPlayer_loadstart",progress:"jPlayer_progress",suspend:"jPlayer_suspend",abort:"jPlayer_abort",emptied:"jPlayer_emptied",stalled:"jPlayer_stalled",play:"jPlayer_play",pause:"jPlayer_pause",loadedmetadata:"jPlayer_loadedmetadata",loadeddata:"jPlayer_loadeddata",waiting:"jPlayer_waiting",playing:"jPlayer_playing",canplay:"jPlayer_canplay",canplaythrough:"jPlayer_canplaythrough",seeking:"jPlayer_seeking",seeked:"jPlayer_seeked",
timeupdate:"jPlayer_timeupdate",ended:"jPlayer_ended",ratechange:"jPlayer_ratechange",durationchange:"jPlayer_durationchange",volumechange:"jPlayer_volumechange"};a.jPlayer.htmlEvent="loadstart,abort,emptied,stalled,loadedmetadata,loadeddata,canplay,canplaythrough,ratechange".split(",");a.jPlayer.pause=function(){a.each(a.jPlayer.prototype.instances,function(a,d){d.data("jPlayer").status.srcSet&&d.jPlayer("pause")})};a.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,
sepHour:":",sepMin:":",sepSec:""};a.jPlayer.convertTime=function(b){var d=new Date(b*1E3),f=d.getUTCHours(),b=d.getUTCMinutes(),d=d.getUTCSeconds(),f=a.jPlayer.timeFormat.padHour&&f<10?"0"+f:f,b=a.jPlayer.timeFormat.padMin&&b<10?"0"+b:b,d=a.jPlayer.timeFormat.padSec&&d<10?"0"+d:d;return(a.jPlayer.timeFormat.showHour?f+a.jPlayer.timeFormat.sepHour:"")+(a.jPlayer.timeFormat.showMin?b+a.jPlayer.timeFormat.sepMin:"")+(a.jPlayer.timeFormat.showSec?d+a.jPlayer.timeFormat.sepSec:"")};a.jPlayer.uaBrowser=
function(a){var a=a.toLowerCase(),d=/(opera)(?:.*version)?[ \/]([\w.]+)/,f=/(msie) ([\w.]+)/,g=/(mozilla)(?:.*? rv:([\w.]+))?/,a=/(webkit)[ \/]([\w.]+)/.exec(a)||d.exec(a)||f.exec(a)||a.indexOf("compatible")<0&&g.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}};a.jPlayer.uaPlatform=function(a){var d=a.toLowerCase(),f=/(android)/,g=/(mobile)/,a=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/.exec(d)||[],d=/(ipad|playbook)/.exec(d)||!g.exec(d)&&f.exec(d)||[];return{platform:a[1]||
"",tablet:d[1]||""}};a.jPlayer.browser={};a.jPlayer.platform={};var g=a.jPlayer.uaBrowser(navigator.userAgent);if(g.browser)a.jPlayer.browser[g.browser]=!0,a.jPlayer.browser.version=g.version;g=a.jPlayer.uaPlatform(navigator.userAgent);if(g.platform)a.jPlayer.platform[g.platform]=!0,a.jPlayer.platform.mobile=!g.tablet,a.jPlayer.platform.tablet=!!g.tablet;a.jPlayer.prototype={count:0,version:{script:"2.0.32",needFlash:"2.0.32",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",
preload:"metadata",volume:0.8,muted:!1,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",currentTime:".jp-current-time",duration:".jp-duration",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen",
repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},fullScreen:!1,autohide:{restored:!1,full:!0,fadeIn:200,fadeOut:600,hold:1E3},loop:!1,repeat:function(b){b.jPlayer.options.loop?a(this).unbind(".jPlayerRepeat").bind(a.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){a(this).jPlayer("play")}):a(this).unbind(".jPlayerRepeat")},nativeVideoControls:{},noFullScreen:{msie:/msie [0-6]/,ipad:/ipad.*?os [0-5]/,iphone:/iphone.*?os [0-5]/,ipod:/ipod.*?os [0-5]/,
android_pad:/android [0-3](?!.*?mobile)/,android_phone:/android [0-2].*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,webos:/webos/},noVolume:{ipad:/ipad.*?os [0-5]/,iphone:/iphone.*?os [0-5]/,ipod:/ipod.*?os [0-5]/,android_pad:/android [0-3](?!.*?mobile)/,android_phone:/android [0-2].*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,webos:/webos/,playbook:/playbook/},idPrefix:"jp",noConflict:"jQuery",emulateHtml:!1,errorAlerts:!1,warningAlerts:!1},optionsAudio:{size:{width:"0px",
height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}},optionsVideo:{size:{width:"480px",height:"270px",cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"",media:{},paused:!0,format:{},formatType:"",waitForPlay:!0,waitForLoad:!0,srcSet:!1,video:!1,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:!1},solution:{html:!0,
flash:!0},format:{mp3:{codec:'audio/mpeg; codecs="mp3"',flashCanPlay:!0,media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:!0,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis"',flashCanPlay:!1,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:!1,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:!1,media:"audio"},fla:{codec:"audio/x-flv",flashCanPlay:!0,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!0,media:"video"},
ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:!1,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:!1,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:!0,media:"video"}},_init:function(){var b=this;this.element.empty();this.status=a.extend({},this.status);this.internal=a.extend({},this.internal);this.internal.domNode=this.element.get(0);this.formats=[];this.solutions=[];this.require={};this.htmlElement={};this.html={};this.html.audio={};this.html.video=
{};this.flash={};this.css={};this.css.cs={};this.css.jq={};this.ancestorJq=[];this.options.volume=this._limitValue(this.options.volume,0,1);a.each(this.options.supplied.toLowerCase().split(","),function(d,f){var g=f.replace(/^\s+|\s+$/g,"");if(b.format[g]){var h=!1;a.each(b.formats,function(a,b){if(g===b)return h=!0,!1});h||b.formats.push(g)}});a.each(this.options.solution.toLowerCase().split(","),function(d,f){var g=f.replace(/^\s+|\s+$/g,"");if(b.solution[g]){var h=!1;a.each(b.solutions,function(a,
b){if(g===b)return h=!0,!1});h||b.solutions.push(g)}});this.internal.instance="jp_"+this.count;this.instances[this.internal.instance]=this.element;this.element.attr("id")||this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count);this.internal.self=a.extend({},{id:this.element.attr("id"),jq:this.element});this.internal.audio=a.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:d});this.internal.video=a.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:d});this.internal.flash=
a.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:d,swf:this.options.swfPath+(this.options.swfPath.toLowerCase().slice(-4)!==".swf"?(this.options.swfPath&&this.options.swfPath.slice(-1)!=="/"?"/":"")+"Jplayer.swf":"")});this.internal.poster=a.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:d});a.each(a.jPlayer.event,function(a,f){b.options[a]!==d&&(b.element.bind(f+".jPlayer",b.options[a]),b.options[a]=d)});this.require.audio=!1;this.require.video=!1;a.each(this.formats,function(a,
d){b.require[b.format[d].media]=!0});this.options=this.require.video?a.extend(!0,{},this.optionsVideo,this.options):a.extend(!0,{},this.optionsAudio,this.options);this._setSize();this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this.status.noFullScreen=this._uaBlocklist(this.options.noFullScreen);this.status.noVolume=this._uaBlocklist(this.options.noVolume);this._restrictNativeVideoControls();this.htmlElement.poster=document.createElement("img");this.htmlElement.poster.id=
this.internal.poster.id;this.htmlElement.poster.onload=function(){(!b.status.video||b.status.waitForPlay)&&b.internal.poster.jq.show()};this.element.append(this.htmlElement.poster);this.internal.poster.jq=a("#"+this.internal.poster.id);this.internal.poster.jq.css({width:this.status.width,height:this.status.height});this.internal.poster.jq.hide();this.internal.poster.jq.bind("click.jPlayer",function(){b._trigger(a.jPlayer.event.click)});this.html.audio.available=!1;if(this.require.audio)this.htmlElement.audio=
document.createElement("audio"),this.htmlElement.audio.id=this.internal.audio.id,this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio);this.html.video.available=!1;if(this.require.video)this.htmlElement.video=document.createElement("video"),this.htmlElement.video.id=this.internal.video.id,this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video);this.flash.available=this._checkForFlash(10);
this.html.canPlay={};this.flash.canPlay={};a.each(this.formats,function(a,d){b.html.canPlay[d]=b.html[b.format[d].media].available&&""!==b.htmlElement[b.format[d].media].canPlayType(b.format[d].codec);b.flash.canPlay[d]=b.format[d].flashCanPlay&&b.flash.available});this.html.desired=!1;this.flash.desired=!1;a.each(this.solutions,function(d,f){if(d===0)b[f].desired=!0;else{var g=!1,h=!1;a.each(b.formats,function(a,d){b[b.solutions[0]].canPlay[d]&&(b.format[d].media==="video"?h=!0:g=!0)});b[f].desired=
b.require.audio&&!g||b.require.video&&!h}});this.html.support={};this.flash.support={};a.each(this.formats,function(a,d){b.html.support[d]=b.html.canPlay[d]&&b.html.desired;b.flash.support[d]=b.flash.canPlay[d]&&b.flash.desired});this.html.used=!1;this.flash.used=!1;a.each(this.solutions,function(d,f){a.each(b.formats,function(a,d){if(b[f].support[d])return b[f].used=!0,!1})});this._resetActive();this._resetGate();this._cssSelectorAncestor(this.options.cssSelectorAncestor);!this.html.used&&!this.flash.used?
(this._error({type:a.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:a.jPlayer.errorMsg.NO_SOLUTION,hint:a.jPlayer.errorHint.NO_SOLUTION}),this.css.jq.noSolution.length&&this.css.jq.noSolution.show()):this.css.jq.noSolution.length&&this.css.jq.noSolution.hide();if(this.flash.used){var g,f="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted;
if(a.browser.msie&&Number(a.browser.version)<=8){f=['<param name="movie" value="'+this.internal.flash.swf+'" />','<param name="FlashVars" value="'+f+'" />','<param name="allowScriptAccess" value="always" />','<param name="bgcolor" value="'+this.options.backgroundColor+'" />','<param name="wmode" value="'+this.options.wmode+'" />'];g=document.createElement('<object id="'+this.internal.flash.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0"></object>');for(var i=0;i<f.length;i++)g.appendChild(document.createElement(f[i]))}else i=
function(a,b,d){var f=document.createElement("param");f.setAttribute("name",b);f.setAttribute("value",d);a.appendChild(f)},g=document.createElement("object"),g.setAttribute("id",this.internal.flash.id),g.setAttribute("data",this.internal.flash.swf),g.setAttribute("type","application/x-shockwave-flash"),g.setAttribute("width","1"),g.setAttribute("height","1"),i(g,"flashvars",f),i(g,"allowscriptaccess","always"),i(g,"bgcolor",this.options.backgroundColor),i(g,"wmode",this.options.wmode);this.element.append(g);
this.internal.flash.jq=a(g)}if(this.html.used){if(this.html.audio.available)this._addHtmlEventListeners(this.htmlElement.audio,this.html.audio),this.element.append(this.htmlElement.audio),this.internal.audio.jq=a("#"+this.internal.audio.id);if(this.html.video.available)this._addHtmlEventListeners(this.htmlElement.video,this.html.video),this.element.append(this.htmlElement.video),this.internal.video.jq=a("#"+this.internal.video.id),this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,
height:this.status.height}):this.internal.video.jq.css({width:"0px",height:"0px"}),this.internal.video.jq.bind("click.jPlayer",function(){b._trigger(a.jPlayer.event.click)})}this.options.emulateHtml&&this._emulateHtmlBridge();this.html.used&&!this.flash.used&&setTimeout(function(){b.internal.ready=!0;b.version.flash="n/a";b._trigger(a.jPlayer.event.repeat);b._trigger(a.jPlayer.event.ready)},100);this._updateNativeVideoControls();this._updateInterface();this._updateButtons(!1);this._updateAutohide();
this._updateVolume(this.options.volume);this._updateMute(this.options.muted);this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide();a.jPlayer.prototype.count++},destroy:function(){this.clearMedia();this._removeUiClass();this.css.jq.currentTime.length&&this.css.jq.currentTime.text("");this.css.jq.duration.length&&this.css.jq.duration.text("");a.each(this.css.jq,function(a,d){d.length&&d.unbind(".jPlayer")});this.internal.poster.jq.unbind(".jPlayer");this.internal.video.jq&&this.internal.video.jq.unbind(".jPlayer");
this.options.emulateHtml&&this._destroyHtmlBridge();this.element.removeData("jPlayer");this.element.unbind(".jPlayer");this.element.empty();delete this.instances[this.internal.instance]},enable:function(){},disable:function(){},_testCanPlayType:function(a){try{return a.canPlayType(this.format.mp3.codec),!0}catch(d){return!1}},_uaBlocklist:function(b){var d=navigator.userAgent.toLowerCase(),f=!1;a.each(b,function(a,b){if(b&&b.test(d))return f=!0,!1});return f},_restrictNativeVideoControls:function(){if(this.require.audio&&
this.status.nativeVideoControls)this.status.nativeVideoControls=!1,this.status.noFullScreen=!0},_updateNativeVideoControls:function(){if(this.html.video.available&&this.html.used)this.htmlElement.video.controls=this.status.nativeVideoControls,this._updateAutohide(),this.status.nativeVideoControls&&this.require.video?(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})):this.status.waitForPlay&&this.status.video&&(this.internal.poster.jq.show(),
this.internal.video.jq.css({width:"0px",height:"0px"}))},_addHtmlEventListeners:function(b,d){var f=this;b.preload=this.options.preload;b.muted=this.options.muted;b.volume=this.options.volume;b.addEventListener("progress",function(){d.gate&&(f._getHtmlStatus(b),f._updateInterface(),f._trigger(a.jPlayer.event.progress))},!1);b.addEventListener("timeupdate",function(){d.gate&&(f._getHtmlStatus(b),f._updateInterface(),f._trigger(a.jPlayer.event.timeupdate))},!1);b.addEventListener("durationchange",function(){if(d.gate)f.status.duration=
this.duration,f._getHtmlStatus(b),f._updateInterface(),f._trigger(a.jPlayer.event.durationchange)},!1);b.addEventListener("play",function(){d.gate&&(f._updateButtons(!0),f._html_checkWaitForPlay(),f._trigger(a.jPlayer.event.play))},!1);b.addEventListener("playing",function(){d.gate&&(f._updateButtons(!0),f._seeked(),f._trigger(a.jPlayer.event.playing))},!1);b.addEventListener("pause",function(){d.gate&&(f._updateButtons(!1),f._trigger(a.jPlayer.event.pause))},!1);b.addEventListener("waiting",function(){d.gate&&
(f._seeking(),f._trigger(a.jPlayer.event.waiting))},!1);b.addEventListener("seeking",function(){d.gate&&(f._seeking(),f._trigger(a.jPlayer.event.seeking))},!1);b.addEventListener("seeked",function(){d.gate&&(f._seeked(),f._trigger(a.jPlayer.event.seeked))},!1);b.addEventListener("volumechange",function(){if(d.gate)f.options.volume=b.volume,f.options.muted=b.muted,f._updateMute(),f._updateVolume(),f._trigger(a.jPlayer.event.volumechange)},!1);b.addEventListener("suspend",function(){d.gate&&(f._seeked(),
f._trigger(a.jPlayer.event.suspend))},!1);b.addEventListener("ended",function(){if(d.gate){if(!a.jPlayer.browser.webkit)f.htmlElement.media.currentTime=0;f.htmlElement.media.pause();f._updateButtons(!1);f._getHtmlStatus(b,!0);f._updateInterface();f._trigger(a.jPlayer.event.ended)}},!1);b.addEventListener("error",function(){if(d.gate&&(f._updateButtons(!1),f._seeked(),f.status.srcSet))clearTimeout(f.internal.htmlDlyCmdId),f.status.waitForLoad=!0,f.status.waitForPlay=!0,f.status.video&&!f.status.nativeVideoControls&&
f.internal.video.jq.css({width:"0px",height:"0px"}),f._validString(f.status.media.poster)&&!f.status.nativeVideoControls&&f.internal.poster.jq.show(),f.css.jq.videoPlay.length&&f.css.jq.videoPlay.show(),f._error({type:a.jPlayer.error.URL,context:f.status.src,message:a.jPlayer.errorMsg.URL,hint:a.jPlayer.errorHint.URL})},!1);a.each(a.jPlayer.htmlEvent,function(g,j){b.addEventListener(this,function(){d.gate&&f._trigger(a.jPlayer.event[j])},!1)})},_getHtmlStatus:function(a,d){var f=0,g=0,j=0,m=0;if(a.duration)this.status.duration=
a.duration;f=a.currentTime;g=this.status.duration>0?100*f/this.status.duration:0;typeof a.seekable==="object"&&a.seekable.length>0?(j=this.status.duration>0?100*a.seekable.end(a.seekable.length-1)/this.status.duration:100,m=100*a.currentTime/a.seekable.end(a.seekable.length-1)):(j=100,m=g);d&&(g=m=f=0);this.status.seekPercent=j;this.status.currentPercentRelative=m;this.status.currentPercentAbsolute=g;this.status.currentTime=f;this.status.readyState=a.readyState;this.status.networkState=a.networkState;
this.status.playbackRate=a.playbackRate;this.status.ended=a.ended},_resetStatus:function(){this.status=a.extend({},this.status,a.jPlayer.prototype.status)},_trigger:function(b,d,f){b=a.Event(b);b.jPlayer={};b.jPlayer.version=a.extend({},this.version);b.jPlayer.options=a.extend(!0,{},this.options);b.jPlayer.status=a.extend(!0,{},this.status);b.jPlayer.html=a.extend(!0,{},this.html);b.jPlayer.flash=a.extend(!0,{},this.flash);if(d)b.jPlayer.error=a.extend({},d);if(f)b.jPlayer.warning=a.extend({},f);
this.element.trigger(b)},jPlayerFlashEvent:function(b,d){if(b===a.jPlayer.event.ready)if(this.internal.ready){if(this.flash.gate){if(this.status.srcSet){var f=this.status.currentTime,g=this.status.paused;this.setMedia(this.status.media);f>0&&(g?this.pause(f):this.play(f))}this._trigger(a.jPlayer.event.flashreset)}}else this.internal.ready=!0,this.internal.flash.jq.css({width:"0px",height:"0px"}),this.version.flash=d.version,this.version.needFlash!==this.version.flash&&this._error({type:a.jPlayer.error.VERSION,
context:this.version.flash,message:a.jPlayer.errorMsg.VERSION+this.version.flash,hint:a.jPlayer.errorHint.VERSION}),this._trigger(a.jPlayer.event.repeat),this._trigger(b);if(this.flash.gate)switch(b){case a.jPlayer.event.progress:this._getFlashStatus(d);this._updateInterface();this._trigger(b);break;case a.jPlayer.event.timeupdate:this._getFlashStatus(d);this._updateInterface();this._trigger(b);break;case a.jPlayer.event.play:this._seeked();this._updateButtons(!0);this._trigger(b);break;case a.jPlayer.event.pause:this._updateButtons(!1);
this._trigger(b);break;case a.jPlayer.event.ended:this._updateButtons(!1);this._trigger(b);break;case a.jPlayer.event.click:this._trigger(b);break;case a.jPlayer.event.error:this.status.waitForLoad=!0;this.status.waitForPlay=!0;this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"});this._validString(this.status.media.poster)&&this.internal.poster.jq.show();this.css.jq.videoPlay.length&&this.css.jq.videoPlay.show();this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media);
this._error({type:a.jPlayer.error.URL,context:d.src,message:a.jPlayer.errorMsg.URL,hint:a.jPlayer.errorHint.URL});break;case a.jPlayer.event.seeking:this._seeking();this._trigger(b);break;case a.jPlayer.event.seeked:this._seeked();this._trigger(b);break;case a.jPlayer.event.ready:break;default:this._trigger(b)}return!1},_getFlashStatus:function(a){this.status.seekPercent=a.seekPercent;this.status.currentPercentRelative=a.currentPercentRelative;this.status.currentPercentAbsolute=a.currentPercentAbsolute;
this.status.currentTime=a.currentTime;this.status.duration=a.duration;this.status.readyState=4;this.status.networkState=0;this.status.playbackRate=1;this.status.ended=!1},_updateButtons:function(a){if(a!==d)this.status.paused=!a,this.css.jq.play.length&&this.css.jq.pause.length&&(a?(this.css.jq.play.hide(),this.css.jq.pause.show()):(this.css.jq.play.show(),this.css.jq.pause.hide()));this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length&&(this.status.noFullScreen?(this.css.jq.fullScreen.hide(),
this.css.jq.restoreScreen.hide()):this.options.fullScreen?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.show()):(this.css.jq.fullScreen.show(),this.css.jq.restoreScreen.hide()));this.css.jq.repeat.length&&this.css.jq.repeatOff.length&&(this.options.loop?(this.css.jq.repeat.hide(),this.css.jq.repeatOff.show()):(this.css.jq.repeat.show(),this.css.jq.repeatOff.hide()))},_updateInterface:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+"%");this.css.jq.playBar.length&&
this.css.jq.playBar.width(this.status.currentPercentRelative+"%");this.css.jq.currentTime.length&&this.css.jq.currentTime.text(a.jPlayer.convertTime(this.status.currentTime));this.css.jq.duration.length&&this.css.jq.duration.text(a.jPlayer.convertTime(this.status.duration))},_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg")},_seeked:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg")},_resetGate:function(){this.html.audio.gate=
!1;this.html.video.gate=!1;this.flash.gate=!1},_resetActive:function(){this.html.active=!1;this.flash.active=!1},setMedia:function(b){var d=this,f=!1;this._resetMedia();this._resetGate();this._resetActive();a.each(this.formats,function(g,j){var m=d.format[j].media==="video";a.each(d.solutions,function(a,g){if(d[g].support[j]&&d._validString(b[j])){var i=g==="html";m?(i?(d.html.video.gate=!0,d._html_setVideo(b),d.html.active=!0):(d.flash.gate=!0,d._flash_setVideo(b),d.flash.active=!0),d.css.jq.videoPlay.length&&
d.css.jq.videoPlay.show(),d.status.video=!0):(i?(d.html.audio.gate=!0,d._html_setAudio(b),d.html.active=!0):(d.flash.gate=!0,d._flash_setAudio(b),d.flash.active=!0),d.css.jq.videoPlay.length&&d.css.jq.videoPlay.hide(),d.status.video=!1);f=!0;return!1}});if(f)return!1});if(f){if(!this.status.nativeVideoControls||!this.html.video.gate)this._validString(b.poster)?this.htmlElement.poster.src!==b.poster?this.htmlElement.poster.src=b.poster:this.internal.poster.jq.show():this.internal.poster.jq.hide();
this.status.srcSet=!0;this.status.media=a.extend({},b);this._updateButtons(!1);this._updateInterface()}else this._error({type:a.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:a.jPlayer.errorMsg.NO_SUPPORT,hint:a.jPlayer.errorHint.NO_SUPPORT})},_resetMedia:function(){this._resetStatus();this._updateButtons(!1);this._updateInterface();this._seeked();this.internal.poster.jq.hide();clearTimeout(this.internal.htmlDlyCmdId);this.html.active?this._html_resetMedia():this.flash.active&&
this._flash_resetMedia()},clearMedia:function(){this._resetMedia();this.html.active?this._html_clearMedia():this.flash.active&&this._flash_clearMedia();this._resetGate();this._resetActive()},load:function(){this.status.srcSet?this.html.active?this._html_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},play:function(a){a=typeof a==="number"?a:NaN;this.status.srcSet?this.html.active?this._html_play(a):this.flash.active&&this._flash_play(a):this._urlNotSetError("play")},videoPlay:function(){this.play()},
pause:function(a){a=typeof a==="number"?a:NaN;this.status.srcSet?this.html.active?this._html_pause(a):this.flash.active&&this._flash_pause(a):this._urlNotSetError("pause")},pauseOthers:function(){var b=this;a.each(this.instances,function(a,d){b.element!==d&&d.data("jPlayer").status.srcSet&&d.jPlayer("pause")})},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(a){a=this._limitValue(a,0,100);
this.status.srcSet?this.html.active?this._html_playHead(a):this.flash.active&&this._flash_playHead(a):this._urlNotSetError("playHead")},_muted:function(b){this.options.muted=b;this.html.used&&this._html_mute(b);this.flash.used&&this._flash_mute(b);!this.html.video.gate&&!this.html.audio.gate&&(this._updateMute(b),this._updateVolume(this.options.volume),this._trigger(a.jPlayer.event.volumechange))},mute:function(a){a=a===d?!0:!!a;this._muted(a)},unmute:function(a){a=a===d?!0:!!a;this._muted(!a)},_updateMute:function(a){if(a===
d)a=this.options.muted;this.css.jq.mute.length&&this.css.jq.unmute.length&&(this.status.noVolume?(this.css.jq.mute.hide(),this.css.jq.unmute.hide()):a?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))},volume:function(b){b=this._limitValue(b,0,1);this.options.volume=b;this.html.used&&this._html_volume(b);this.flash.used&&this._flash_volume(b);!this.html.video.gate&&!this.html.audio.gate&&(this._updateVolume(b),this._trigger(a.jPlayer.event.volumechange))},
volumeBar:function(a){if(this.css.jq.volumeBar.length){var d=this.css.jq.volumeBar.offset(),a=a.pageX-d.left,d=this.css.jq.volumeBar.width();this.volume(a/d)}this.options.muted&&this._muted(!1)},volumeBarValue:function(a){this.volumeBar(a)},_updateVolume:function(a){if(a===d)a=this.options.volume;a=this.options.muted?0:a;this.status.noVolume?(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.hide(),this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide(),this.css.jq.volumeMax.length&&
this.css.jq.volumeMax.hide()):(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.show(),this.css.jq.volumeBarValue.length&&(this.css.jq.volumeBarValue.show(),this.css.jq.volumeBarValue.width(a*100+"%")),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show())},volumeMax:function(){this.volume(1);this.options.muted&&this._muted(!1)},_cssSelectorAncestor:function(b){var d=this;this.options.cssSelectorAncestor=b;this._removeUiClass();this.ancestorJq=b?a(b):[];b&&this.ancestorJq.length!==1&&this._warning({type:a.jPlayer.warning.CSS_SELECTOR_COUNT,
context:b,message:a.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:a.jPlayer.warningHint.CSS_SELECTOR_COUNT});this._addUiClass();a.each(this.options.cssSelector,function(a,b){d._cssSelector(a,b)})},_cssSelector:function(b,d){var f=this;typeof d==="string"?a.jPlayer.prototype.options.cssSelector[b]?(this.css.jq[b]&&this.css.jq[b].length&&this.css.jq[b].unbind(".jPlayer"),this.options.cssSelector[b]=d,this.css.cs[b]=this.options.cssSelectorAncestor+
" "+d,this.css.jq[b]=d?a(this.css.cs[b]):[],this.css.jq[b].length&&this.css.jq[b].bind("click.jPlayer",function(d){f[b](d);a(this).blur();return!1}),d&&this.css.jq[b].length!==1&&this._warning({type:a.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[b],message:a.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[b].length+" found for "+b+" method.",hint:a.jPlayer.warningHint.CSS_SELECTOR_COUNT})):this._warning({type:a.jPlayer.warning.CSS_SELECTOR_METHOD,context:b,message:a.jPlayer.warningMsg.CSS_SELECTOR_METHOD,
hint:a.jPlayer.warningHint.CSS_SELECTOR_METHOD}):this._warning({type:a.jPlayer.warning.CSS_SELECTOR_STRING,context:d,message:a.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:a.jPlayer.warningHint.CSS_SELECTOR_STRING})},seekBar:function(a){if(this.css.jq.seekBar){var d=this.css.jq.seekBar.offset(),a=a.pageX-d.left,d=this.css.jq.seekBar.width();this.playHead(100*a/d)}},playBar:function(a){this.seekBar(a)},repeat:function(){this._loop(!0)},repeatOff:function(){this._loop(!1)},_loop:function(b){if(this.options.loop!==
b)this.options.loop=b,this._updateButtons(),this._trigger(a.jPlayer.event.repeat)},currentTime:function(){},duration:function(){},gui:function(){},noSolution:function(){},option:function(b,g){var f=b;if(arguments.length===0)return a.extend(!0,{},this.options);if(typeof b==="string"){var i=b.split(".");if(g===d){for(var f=a.extend(!0,{},this.options),j=0;j<i.length;j++)if(f[i[j]]!==d)f=f[i[j]];else return this._warning({type:a.jPlayer.warning.OPTION_KEY,context:b,message:a.jPlayer.warningMsg.OPTION_KEY,
hint:a.jPlayer.warningHint.OPTION_KEY}),d;return f}for(var j=f={},m=0;m<i.length;m++)m<i.length-1?(j[i[m]]={},j=j[i[m]]):j[i[m]]=g}this._setOptions(f);return this},_setOptions:function(b){var d=this;a.each(b,function(a,b){d._setOption(a,b)});return this},_setOption:function(b,d){var f=this;switch(b){case "volume":this.volume(d);break;case "muted":this._muted(d);break;case "cssSelectorAncestor":this._cssSelectorAncestor(d);break;case "cssSelector":a.each(d,function(a,b){f._cssSelector(a,b)});break;
case "fullScreen":this.options[b]!==d&&(this._removeUiClass(),this.options[b]=d,this._refreshSize());break;case "size":!this.options.fullScreen&&this.options[b].cssClass!==d.cssClass&&this._removeUiClass();this.options[b]=a.extend({},this.options[b],d);this._refreshSize();break;case "sizeFull":this.options.fullScreen&&this.options[b].cssClass!==d.cssClass&&this._removeUiClass();this.options[b]=a.extend({},this.options[b],d);this._refreshSize();break;case "autohide":this.options[b]=a.extend({},this.options[b],
d);this._updateAutohide();break;case "loop":this._loop(d);break;case "nativeVideoControls":this.options[b]=a.extend({},this.options[b],d);this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this._restrictNativeVideoControls();this._updateNativeVideoControls();break;case "noFullScreen":this.options[b]=a.extend({},this.options[b],d);this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this.status.noFullScreen=this._uaBlocklist(this.options.noFullScreen);
this._restrictNativeVideoControls();this._updateButtons();break;case "noVolume":this.options[b]=a.extend({},this.options[b],d);this.status.noVolume=this._uaBlocklist(this.options.noVolume);this._updateVolume();this._updateMute();break;case "emulateHtml":this.options[b]!==d&&((this.options[b]=d)?this._emulateHtmlBridge():this._destroyHtmlBridge())}return this},_refreshSize:function(){this._setSize();this._addUiClass();this._updateSize();this._updateButtons();this._updateAutohide();this._trigger(a.jPlayer.event.resize)},
_setSize:function(){this.options.fullScreen?(this.status.width=this.options.sizeFull.width,this.status.height=this.options.sizeFull.height,this.status.cssClass=this.options.sizeFull.cssClass):(this.status.width=this.options.size.width,this.status.height=this.options.size.height,this.status.cssClass=this.options.size.cssClass);this.element.css({width:this.status.width,height:this.status.height})},_addUiClass:function(){this.ancestorJq.length&&this.ancestorJq.addClass(this.status.cssClass)},_removeUiClass:function(){this.ancestorJq.length&&
this.ancestorJq.removeClass(this.status.cssClass)},_updateSize:function(){this.internal.poster.jq.css({width:this.status.width,height:this.status.height});!this.status.waitForPlay&&this.html.active&&this.status.video||this.html.video.available&&this.html.used&&this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,height:this.status.height}):!this.status.waitForPlay&&this.flash.active&&this.status.video&&this.internal.flash.jq.css({width:this.status.width,height:this.status.height})},
_updateAutohide:function(){var a=this,d=function(){a.css.jq.gui.fadeIn(a.options.autohide.fadeIn,function(){clearTimeout(a.internal.autohideId);a.internal.autohideId=setTimeout(function(){a.css.jq.gui.fadeOut(a.options.autohide.fadeOut)},a.options.autohide.hold)})};clearTimeout(this.internal.autohideId);this.element.unbind(".jPlayerAutohide");this.css.jq.gui.length&&(this.css.jq.gui.unbind(".jPlayerAutohide"),this.status.nativeVideoControls?this.css.jq.gui.stop(!0,!0).hide():this.options.fullScreen&&
this.options.autohide.full||!this.options.fullScreen&&this.options.autohide.restored?(this.element.bind("mousemove.jPlayer.jPlayerAutohide",d),this.css.jq.gui.bind("mousemove.jPlayer.jPlayerAutohide",d),this.css.jq.gui.stop(!0,!0).hide()):this.css.jq.gui.stop(!0,!0).show())},fullScreen:function(){this._setOption("fullScreen",!0)},restoreScreen:function(){this._setOption("fullScreen",!1)},_html_initMedia:function(){this.htmlElement.media.src=this.status.src;this.options.preload!=="none"&&this._html_load();
this._trigger(a.jPlayer.event.timeupdate)},_html_setAudio:function(b){var d=this;a.each(this.formats,function(a,g){if(d.html.support[g]&&b[g])return d.status.src=b[g],d.status.format[g]=!0,d.status.formatType=g,!1});this.htmlElement.media=this.htmlElement.audio;this._html_initMedia()},_html_setVideo:function(b){var d=this;a.each(this.formats,function(a,g){if(d.html.support[g]&&b[g])return d.status.src=b[g],d.status.format[g]=!0,d.status.formatType=g,!1});if(this.status.nativeVideoControls)this.htmlElement.video.poster=
this._validString(b.poster)?b.poster:"";this.htmlElement.media=this.htmlElement.video;this._html_initMedia()},_html_resetMedia:function(){this.htmlElement.media&&(this.htmlElement.media.id===this.internal.video.id&&!this.status.nativeVideoControls&&this.internal.video.jq.css({width:"0px",height:"0px"}),this.htmlElement.media.pause())},_html_clearMedia:function(){if(this.htmlElement.media)this.htmlElement.media.src="",this.htmlElement.media.load()},_html_load:function(){if(this.status.waitForLoad)this.status.waitForLoad=
!1,this.htmlElement.media.load();clearTimeout(this.internal.htmlDlyCmdId)},_html_play:function(a){var d=this;this._html_load();this.htmlElement.media.play();if(!isNaN(a))try{this.htmlElement.media.currentTime=a}catch(f){this.internal.htmlDlyCmdId=setTimeout(function(){d.play(a)},100);return}this._html_checkWaitForPlay()},_html_pause:function(a){var d=this;a>0?this._html_load():clearTimeout(this.internal.htmlDlyCmdId);this.htmlElement.media.pause();if(!isNaN(a))try{this.htmlElement.media.currentTime=
a}catch(f){this.internal.htmlDlyCmdId=setTimeout(function(){d.pause(a)},100);return}a>0&&this._html_checkWaitForPlay()},_html_playHead:function(a){var d=this;this._html_load();try{if(typeof this.htmlElement.media.seekable==="object"&&this.htmlElement.media.seekable.length>0)this.htmlElement.media.currentTime=a*this.htmlElement.media.seekable.end(this.htmlElement.media.seekable.length-1)/100;else if(this.htmlElement.media.duration>0&&!isNaN(this.htmlElement.media.duration))this.htmlElement.media.currentTime=
a*this.htmlElement.media.duration/100;else throw"e";}catch(f){this.internal.htmlDlyCmdId=setTimeout(function(){d.playHead(a)},100);return}this.status.waitForLoad||this._html_checkWaitForPlay()},_html_checkWaitForPlay:function(){if(this.status.waitForPlay)this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height}))},_html_volume:function(a){if(this.html.audio.available)this.htmlElement.audio.volume=
a;if(this.html.video.available)this.htmlElement.video.volume=a},_html_mute:function(a){if(this.html.audio.available)this.htmlElement.audio.muted=a;if(this.html.video.available)this.htmlElement.video.muted=a},_flash_setAudio:function(b){var d=this;try{if(a.each(this.formats,function(a,f){if(d.flash.support[f]&&b[f]){switch(f){case "m4a":case "fla":d._getMovie().fl_setAudio_m4a(b[f]);break;case "mp3":d._getMovie().fl_setAudio_mp3(b[f])}d.status.src=b[f];d.status.format[f]=!0;d.status.formatType=f;return!1}}),
this.options.preload==="auto")this._flash_load(),this.status.waitForLoad=!1}catch(f){this._flashError(f)}},_flash_setVideo:function(b){var d=this;try{if(a.each(this.formats,function(a,f){if(d.flash.support[f]&&b[f]){switch(f){case "m4v":case "flv":d._getMovie().fl_setVideo_m4v(b[f])}d.status.src=b[f];d.status.format[f]=!0;d.status.formatType=f;return!1}}),this.options.preload==="auto")this._flash_load(),this.status.waitForLoad=!1}catch(f){this._flashError(f)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",
height:"0px"});this._flash_pause(NaN)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(a){this._flashError(a)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(a){this._flashError(a)}this.status.waitForLoad=!1},_flash_play:function(a){try{this._getMovie().fl_play(a)}catch(d){this._flashError(d)}this.status.waitForLoad=!1;this._flash_checkWaitForPlay()},_flash_pause:function(a){try{this._getMovie().fl_pause(a)}catch(d){this._flashError(d)}if(a>0)this.status.waitForLoad=
!1,this._flash_checkWaitForPlay()},_flash_playHead:function(a){try{this._getMovie().fl_play_head(a)}catch(d){this._flashError(d)}this.status.waitForLoad||this._flash_checkWaitForPlay()},_flash_checkWaitForPlay:function(){if(this.status.waitForPlay)this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.flash.jq.css({width:this.status.width,height:this.status.height}))},_flash_volume:function(a){try{this._getMovie().fl_volume(a)}catch(d){this._flashError(d)}},
_flash_mute:function(a){try{this._getMovie().fl_mute(a)}catch(d){this._flashError(d)}},_getMovie:function(){return document[this.internal.flash.id]},_checkForFlash:function(a){var d=!1,f;if(window.ActiveXObject)try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a),d=!0}catch(g){}else navigator.plugins&&navigator.mimeTypes.length>0&&(f=navigator.plugins["Shockwave Flash"])&&navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1")>=a&&(d=!0);return d},_validString:function(a){return a&&
typeof a==="string"},_limitValue:function(a,d,f){return a<d?d:a>f?f:a},_urlNotSetError:function(b){this._error({type:a.jPlayer.error.URL_NOT_SET,context:b,message:a.jPlayer.errorMsg.URL_NOT_SET,hint:a.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(b){var d;d=this.internal.ready?"FLASH_DISABLED":"FLASH";this._error({type:a.jPlayer.error[d],context:this.internal.flash.swf,message:a.jPlayer.errorMsg[d]+b.message,hint:a.jPlayer.errorHint[d]});this.internal.flash.jq.css({width:"1px",height:"1px"})},
_error:function(b){this._trigger(a.jPlayer.event.error,b);this.options.errorAlerts&&this._alert("Error!"+(b.message?"\n\n"+b.message:"")+(b.hint?"\n\n"+b.hint:"")+"\n\nContext: "+b.context)},_warning:function(b){this._trigger(a.jPlayer.event.warning,d,b);this.options.warningAlerts&&this._alert("Warning!"+(b.message?"\n\n"+b.message:"")+(b.hint?"\n\n"+b.hint:"")+"\n\nContext: "+b.context)},_alert:function(a){alert("jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+a)},_emulateHtmlBridge:function(){var b=
this;a.each(a.jPlayer.emulateMethods.split(/\s+/g),function(a,d){b.internal.domNode[d]=function(a){b[d](a)}});a.each(a.jPlayer.event,function(d,f){var g=!0;a.each(a.jPlayer.reservedEvent.split(/\s+/g),function(a,b){if(b===d)return g=!1});g&&b.element.bind(f+".jPlayer.jPlayerHtml",function(){b._emulateHtmlUpdate();var a=document.createEvent("Event");a.initEvent(d,!1,!0);b.internal.domNode.dispatchEvent(a)})})},_emulateHtmlUpdate:function(){var b=this;a.each(a.jPlayer.emulateStatus.split(/\s+/g),function(a,
d){b.internal.domNode[d]=b.status[d]});a.each(a.jPlayer.emulateOptions.split(/\s+/g),function(a,d){b.internal.domNode[d]=b.options[d]})},_destroyHtmlBridge:function(){var b=this;this.element.unbind(".jPlayerHtml");a.each((a.jPlayer.emulateMethods+" "+a.jPlayer.emulateStatus+" "+a.jPlayer.emulateOptions).split(/\s+/g),function(a,d){delete b.internal.domNode[d]})}};a.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",
VERSION:"e_version"};a.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",
URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+a.jPlayer.prototype.version.script+" needs Jplayer.swf version "+a.jPlayer.prototype.version.needFlash+" but found "};a.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",
URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."};a.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"};a.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",
OPTION_KEY:"The option requested in jPlayer('option') is undefined."};a.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}})(jQuery);